Hello again,
Here's the situation I have:
Last year we were using XAMPP 1.5.0 with PHPEclipse. We had a number of examples and assignments dealing with HTML forms passing data to PHP pages. Last year's pages used the POST or GET data from the HTML forms in "regular" old PHP variables. For example, if the HTML form had a text field like this:
<input type="text" name="age">
... the PHP page would display the POST data like this:
echo ("Your age is $age.");
... and it worked as expected.
This year, using XAMPP 1.5.3a, the very same HTML forms and PHP pages are not working unless $_POST['age'] is used. In other words, PHP isn't automatically reading the POST data in and linking it to the appropriate variable based on the name attribute from the HTML form.
I said before that I'm not a Perl expert. Well, I'm a novice at PHP too. I'm a Java guy, tasked with putting these tools together to teach classes this fall. So when this little issue cropped up, I truly found myself at a loss.
Can anyone give me an indication why last year's method worked before but doesn't now? And why it will work if we supply the $_POST, $_GET or $_REQUEST "tags". I sure would appreciate any insights!
Thanks in advance!
Veg
By the way, I should add that I am not the one teaching PHP! Don't want anyone thinking such a grossly unqualified individual might be taking on that task. I'm just putting the tools in the toolkit and making sure they work together!