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!

Old Script not working, form input

Status
Not open for further replies.

solex

Programmer
Feb 28, 2003
91
GB
Hello,

I use to have lots of pages that used forms to imput info, I havn't used the scripts for 1.5 years, but i tried a symple:

<?php

print $cow;

?>

and then calling up filename.php?cow=printInfo
with out any luck, any idears why its not working, i have looked at the ini file and cant see any thing, i also find it strange as i also use phpnuke on the same account :s

thanx in advance
solex
 
Seems like a register globals error. In later versions of PHP, register globals (variables that were sent across pages are readily available) is off due to security reasons. If you are trying to call a variable from the url, try $_GET['cow'] or $_POST['cow'] if it is coming from a form with a method post. Here is the discussion as to why register globals should be off.
 
hello,

thank you for this, i have also tried the _post and_get with out any luck.

solex
 
i am getting messed reading ur thread..can u explain ur problem more clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top