saumya
02-06-2005, 02:40 PM
hi beautiful people,
I have no idead why my variables do not react? I have a simple HTML form with a text field and submit button.
The text field is named "user".Now the form has action "welcome.php" and it sends through "GET".The welcome page actually shows the text "Welcome $user" it uses print.
print "Welcome $user".
but the problem is I can see the variable in my browser address bar ?user=myname
where as the page displays only Welcome
I have no idea and since I am new comer to php it adds upto my frustration.I have tried POSt instead of get but that too failed.I have tried
print 'Welcome $user'
but nothing good happened.Then tried
print 'welcome'.$user;
same thing.
I am using windows xp with SP1 and php is configured to run on iis.
Please suggest.I want to continue with php but this is the first script from the book and I am failed.
Thanks
Saumya
I have no idead why my variables do not react? I have a simple HTML form with a text field and submit button.
The text field is named "user".Now the form has action "welcome.php" and it sends through "GET".The welcome page actually shows the text "Welcome $user" it uses print.
print "Welcome $user".
but the problem is I can see the variable in my browser address bar ?user=myname
where as the page displays only Welcome
I have no idea and since I am new comer to php it adds upto my frustration.I have tried POSt instead of get but that too failed.I have tried
print 'Welcome $user'
but nothing good happened.Then tried
print 'welcome'.$user;
same thing.
I am using windows xp with SP1 and php is configured to run on iis.
Please suggest.I want to continue with php but this is the first script from the book and I am failed.
Thanks
Saumya