How do you use forms with PHP? I have got a file where I want the value of $enc to be the name of the text box and $dec to be the value to set the text box as.
Hi,
If you want to build a form using PHP, do like this.
echo "<form action='handler.php' method='get'>"; echo "<input type='text' name='$enc' value='$dec'>"; echo "<input type='submit'>"; echo "</form>";
Johan
No, I've got a form full of input boxes with values, and I want the user to be able to change the value of the text box in relation the the name (i.e. every text box with the name $enc gets changed to the value $dec).
I am not sure what you mean. Could you provide an example?