Jump to content

not able to print out value posted


Alicia

Recommended Posts

Hi,

I am having problem print out the value posted from a form by using echo $var even the register_globals is on

from a form and post the value of username and password to this file :
usename entered in the textfield : user
password entered in the textfield : pass

script i used to test the output
echo "$username-$password";
echo "{$_POST['username']}+{$_POST['password']}";
it supposed to output
user-passuser+pass

but now it only output
-user+pass

So it is very obvious the first script is not working and only second is working in this server... when I tested this in my friend's server it is working. What seems to be the problem? The code works perfectly in the server since years ago and it started to give prob last week..

please advise how to get this fixed... this shouldn't be coding prob,,, when i asked the hosting admin, they said their server is working fine.. so what is the problem them???? how to solve this prob ???

anyone can help ?
Link to comment
https://forums.phpfreaks.com/topic/22194-not-able-to-print-out-value-posted/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.