Hello,
I’m learning and trying to understand how html forms and php processing works.
Came across this pair of examples:
HTML FORM:
[php]
PHP PROCESSOR:
[php]?php
$fname = $_GET[“yourName”];
echo “Hello $fname!”;
?>[/php]
OUTPUT SHOULD BE:
Hello Entered/Example Name!
QUESTIONS:
When I play around with the code and try to change the variable “yourName” (on BOTH HTML and PHP files) to, for example “typeName” , the entered name on the form does not show up/ not processed.
In other words, the output becomes just: Hello !
Is yourName a standard php or html variable? Can it not be changed to what ever you want it to be?
Better yet, how exactly does the form process data?
Thanks in advance,
Chris