faqts : Computers : Programming : Languages : PHP : Common Problems : Forms and User Input

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 18 people (78%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

<? echo $form_name ?> is blank no matter what's entered in the form_name. Need help.

May 10th, 2002 13:53
Lakshmi Natarajan, Dien Phan,


Hi!
I was struggling with the same problem until I found an answer -- it 
seems to have been answered on this very same page. 
Check out either one of these:
http://www.faqts.com/knowledge_base/view.phtml/aid/5314/fid/6
http://www.faqts.com/knowledge_base/view.phtml/aid/5953/fid/6
If your form variable is foo, you have to set a certain 
register_globals parameter to 'on' in php.ini to access $foo. Or 
access it with $_POST['foo'] or $_GET['foo'] depending on your method.
Lakshmi.