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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing variables into php scripts

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi,

just installed apache and php. passing variables in via "index.php?variable=whatever" just doesn't work. any ideas?

thanks.
 
Define "doesn't work".

Is Apache running? Does PHP run?

How are you trying to use the variables in your PHP script?

______________________________________________________________________
Never forget that we are
made of the stuff of stars
 
The new versions of PHP (4.10 and up) have the "global variables" (might have the name wrong) parameter turned off in the php config file. The language people have indicated that they intend to deprecate this feature, so you shouldn't turn it on.

If you want to access a form variable, do this:
$_POST['txtPassword']
accessing the contents of the txtPassword text box via the _POST array.

Also, don't forget that variable names are case-sensitive.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top