Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML FORM POST -RETURNS NO VARIABLES?

Status
Not open for further replies.

keoga

Technical User
Joined
Apr 22, 2002
Messages
3
Location
SE
Hi All!

I have a html page with a simple form with the input type =&quot;text&quot; name=&quot;fisrtname&quot;, when I send it with post/get to another php-page, the php-page should just <?echo &quot;Hello $firstname&quot;;?>

The problem is that it echos back (Hello but no variable??)

Iam running Apache 2.0 and php is enabled.

Whats wrong!! newbie stupid?

Thanx!

 
how bout

$_POST[&quot;firstname&quot;] or $_REQUEST[&quot;firstname&quot;]
$_GET[&quot;firstname&quot;]

I think that is the extent of the variations to actions

_____________________________________________________________________
Where have all my friends gone to????
onpnt2.gif

 
Thank you onpnt!

I had to edit the php.ini file and set register_globals =on
Then it worked!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top