Okay I went into the php.ini file and found that both those variables where set to "on" ...still doesnt work with the $"variable_name" method.. so I tried the $HTTP_POST_VAR["variable_n
thanx again ;-)
Main Topics
Browse All Topicsokay i have an HTML <form> that sends data to a php script via the POST method. The PHP script is then suppost to place the variable values sent from the HTML form into a MySQL database.. the problem is that i get blank entrys in the database. I did a little echo test in the PHP script to see if it was recieving the variables and they came out blank. I read in a previous entry something about maybe haveing to configure PHP to recieve and parse outside variables, but i couldnt find anymore info on that... can anybody shed some light on this problem?
thank you in advance
(im useing PHP 4.1)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Okay I went into the php.ini file and found that both those variables where set to "on" ...still doesnt work with the $"variable_name" method.. so I tried the $HTTP_POST_VAR["variable_n
thanx again ;-)
Okay I went into the php.ini file and found that both those variables where set to "on" ...still doesnt work with the $"variable_name" method.. so I tried the $HTTP_POST_VAR["variable_n
thanx again ;-)
Okay...you won't believe this!! Last night when i got the first comment from mgeene I went and checked the php.ini file and like i said in my comment earlier everything was "On" so the $variable_name method should have worked but it didnt so I figured I would try the HTTP_POST_VARS method with the register_globals set to "Off", cause I figured for the sake of experimentation that maybe that should be Off if I want HTTP_POST_VARS to work, since it doesnt need to be On for that method. And ofcourse that method didnt work cause I wrote HTTP_POST_VAR .. (gave up last night)..now i get these two new messages in this morning and the first thing i do before trying these suggestions is turn the register_globals back to "On"... low and behold the $variable_name method works and the other methods too.
Can anybody explain why the $variable_name method wasnt working from the beginning since both the track_variables and register_globals where set to "On" by default? Im a newcommer to all of this, includeing Linux ...
I'm also new to this forum... can I give all of you points, since all of you set me on the right path? :)
Thanks so much for all the input..
Business Accounts
Answer for Membership
by: mgeenePosted on 2002-08-23 at 18:58:21ID: 7239635
There's two ways to retrieve the values that you would like to retrieve from the Form Post method. You can either use the $HTTP_POST_VAR["yourvariab le"] and that will give you your value. If you would prefer to use the $yourvariable you will need to find the php.ini file. In it, you'll find two sections which you need to change, one is register_globals which needs to be set to "on" it's set to "off" and the other is the track_vars should be set to "on". Using things the older way by setting globabl_variables to On creates security concerns as well as variables which you may or may not want to use. Personally, I started using the $HTTP_POST_VAR way to do things, because you never know if they will depricate the older way and then your apps will stop working.
Hope this helps.