Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Problems passing values from html form to a php file

General discussions related to php

Moderators: macek, egami, gesf

Problems passing values from html form to a php file

Postby fresiafunk » Mon Aug 12, 2002 5:24 am

i everyone. :D .. I have been programming PHP since the last year on my Windows XP Professional machine with no problems using older versions of Apache and PHP .. I recently buy a new computer with the same operating system, and i installed the latest version of , MySQL, Apache (1.3.26) for Windows and PHP (SAPI - 4.2.1) following the help files .However now i have some troubles passing values from a html form to a php page.

i use the next in html form :
<form name="form1" action="page.php" method "post" >
<input name="textbox" type="text">
<input type="submit" value="OK">
</form>



by pressing the button ok i receive the value sent, in the $textbox variable of the PHP page.

Actually it doesn't work coz the $textbox variable always is empty, and i don't know why.. anyone have the same problem... HELP ME PLEASE!!!

Maybe is a config problem or a problem with the new versions.

PS. Sorry about my English..
User avatar
fresiafunk
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Aug 12, 2002 5:17 am
Location: CHILE - SOUTH AMERIKA - Land of Dreams and Girls

Postby DoppyNL » Mon Aug 12, 2002 6:48 am

you can acces posted variables via $_POST['variablename'] or $_REQUEST['variablename']

this is done for security reasons.

you can set "register_globals = on" in you're php.ini, but that would leave you with a security problem.
best way is to alter you're scripts.

Greetz Daan
DoppyNL
 

Thanks!

Postby fresiafunk » Mon Aug 12, 2002 6:53 am

THANKS!!!!!!
User avatar
fresiafunk
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Aug 12, 2002 5:17 am
Location: CHILE - SOUTH AMERIKA - Land of Dreams and Girls

Postby Jay » Mon Aug 12, 2002 8:55 am

I notice you've posted this topic in 2 forums. Can you please stick to posting it in one, and if the moderator thinks it's better suited to another forum, we will move it! Thanks
Jay
 


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.