pgp form handler will not display data

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-23-2003
Jack E. Wasserstein
 
Posts: n/a
Default pgp form handler will not display data

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
Reply With Quote
  #2 (permalink)  
Old 12-23-2003
Pavel Jartsev
 
Posts: n/a
Default Re: pgp form handler will not display data

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0