Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Having trouble with netget


Member

Status: Offline
Posts: 9
Date: Mar 14, 2009
Having trouble with netget
Permalink   
 


I have worked for two days trying to get a new app to work and so far nothing.  I made  a script that will process telephone payments and it should work.  I tested various ways and finaly striped it down to just the initial verification of the phone number that is keyed in by the user. 

I know that the code below works.  At least it returns what I think it is supposed to for it to go to the next suvo.  The output in the browser when I hard code in the telephone number is :

survo 31861

That should take the caller to survo 31861 right?  Am I missing something here?  The only parameter in the netget is acctphone which is keyed in by the user.




<?php
 
  require ('dbconnect.php');
  require ('phone_functions.php');

  $acctphone = $_GET['acctphone'];

  $phone_function = new telephone_api();
     
  // validate phone number
      $validate = $phone_function->phonevalidate($acctphone);
  // test if phone number is valid
      if ($validate == 1) {
        echo "<action>
                <app>survo</app>
                <parameters>
                <id>31861</id>
                </parameters>
            </action>";

      }else {
        echo "<action>
                <app>survo</app>
                <parameters>
                <id>31851</id>
                </parameters>
        </action>";
      }
      ;
 
  // end switch
  exit;

?>



__________________


Veteran Member

Status: Offline
Posts: 45
Date: Mar 16, 2009
Permalink   
 

What is the URL of the php page (if you dont want to share publicly you can email me)

-- Edited by pseguin on Monday 16th of March 2009 09:17:06 AM

__________________
-Phil Seguin
pseguin@ifbyphone.com


Member

Status: Offline
Posts: 9
Date: Mar 19, 2009
Permalink   
 

For others out there.  My problem was me-lol.  I had the wrong url in the netget.  If you ever test a app and it hangs up on you, as in phone hang up,  check the url first.



-- Edited by tomdchi on Thursday 19th of March 2009 02:31:56 PM

__________________


Newbie

Status: Offline
Posts: 3
Date: Jun 1, 2012
Permalink   
 

If you ever test a app and it hangs up on you, as in phone hang up, check the url first.


Rc Helicopters|
Rc Hobby Stores
Rc Helicopter reviews

__________________
Bree Vandicamp
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard