This is a discussion on pgp form handler will not display data within the PHP General forums, part of the PHP Programming Forums category; There must be something obvious that I am missing but I cant get the php form handler with the script ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
There must be something obvious that I am missing but I cant get the php
form handler with the script below to display the vairables. The form which sends this data has the correct field names. I am also using the get action, so I can see the variables and values so I know that they are being passed correctly to the form. On submit, the form below displays as follows below. <?php print " the referring doctor is $referringdr .<br>\n"; print " the referral date is $dateofreferral .<br>\n"; print " the patients first name is $pfirst .<br>\n"; print " the patients last name is $plast .<br>\n"; print " the patients telephone number is $telephone .<br>\n"; print " the referring doctor email is $refdremail .<br>\n"; print " the upload is $imageupload <br>\n"; ?> output from patreferhandler.php?%24referringdr=sample+person&% 24refdremail=sample@person ..com&dateofreferral=12%2F03%2F03&pfirst=clientfir st&plast=clientlast&telepho ne=555-5555&imageupload=&Submit=Submit the referring doctor is . the referral date is . the patients first name is . the patients last name is . the patients telephone number is . the referring doctor email is . the upload is Thanks, Jack |
|
|||
|
Jack E. Wasserstein wrote:
> There must be something obvious that I am missing but I cant get the php > form handler with the script below to display the vairables. The form which > sends this data has the correct field names. I am also using the get action, > so I can see the variables and values so I know that they are being passed > correctly to the form. On submit, the form below displays as follows below. > > <?php > > print " the referring doctor is $referringdr .<br>\n"; > ... Better try to use superglobals like $_GET, $_POST or $_REQUEST. Eg.: <? print " the referring doctor is ".$_GET['referringdr'].".<br>\n"; // etc... ?> -- Pavel a.k.a. Papi |