Forum Moderators: coopster
I have been using PERL on and off for a couple of years and have decided to try my hand ant this PHP lark.
Quite good from what I can see but one thing is confusing me:
When passing data from an HTML form is there a query string to manipulate to get at this data? (Like in PERL)
Most of the websites I have read suggest you simply use the name of the field in the html form however this is causing blank values to be entered into my database.
If there is a query string can you show me a snippet of code?
Cheers,
Gary
Another good reference is the PHP Tutorial which has a section on Dealing with Forms [php.net].
you were right, that explained it. Didn't think it was right that it could simply grab the variable names. Now I have nice new values in my database for the first time using PHP.
Woo Hoo!
Now just have to figure out how to use PHP to implement dataPairs table like PERL and all will be rosy. Take it since this language is so like PERL that the best way to work a large input form is a dataPairs (Key/Value) array?
Thanks again guys.
Gary