for testing i switch on the register global ,
<form>
<input type="text" name="txt_name">
<input type="submit" value="Submit">
</form>
print_r($+txt_name);
//Parse error: parse error, expecting T_VARIABLE' or'$'' in F:\wamp\www\sample1 \register_globals.php on line 7
If register global is o , then i know using print_r($_POST[‘txt_name’]) ,
But now register global is On(1) ,
How to get text field value ,
Advise
Why is there a
+symbol in the variable name? It should be justprint_r($txt_name);.