I've heard a bit about them and I find I CAN'T find anything about them on the net.
I may be looking in the wrong places, but I'm sure someone here can help.
How do I create invisible fields?
Gracias!
Invisible Form Fields
Moderator: General Moderators
hey Jim, hidden fields are simple, here:
Don't forget all the other stuff like value , but just make the type="hidden"
Code: Select all
<input type="hidden">you can use them for vaildatiog scripts and forms etc, e.g.
<form method=post action="<?php print("$php_self"); ?>">
your name:<input type="text" name="name"><br>
<input type="hidden" name="name_enterd">
<input type="Submit">
<?php
if(IsSet($name_enterd))
{
Print("Your Name is $name");
}
else
{
Print("You Need to enter your name first!");
}
?>
<form method=post action="<?php print("$php_self"); ?>">
your name:<input type="text" name="name"><br>
<input type="hidden" name="name_enterd">
<input type="Submit">
<?php
if(IsSet($name_enterd))
{
Print("Your Name is $name");
}
else
{
Print("You Need to enter your name first!");
}
?>