Page 1 of 1

Invisible Form Fields

Posted: Fri May 10, 2002 5:32 pm
by Jim
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!

Posted: Fri May 10, 2002 5:40 pm
by gotDNS
hey Jim, hidden fields are simple, here:

Code: Select all

<input type="hidden">
Don't forget all the other stuff like value , but just make the type="hidden"

Posted: Fri May 10, 2002 5:52 pm
by Jim
Thanks man.

I'm so sad it was that obvious. How very, very disappointing ;)

Posted: Fri May 10, 2002 11:52 pm
by lc
hey that's cool.. I didn't even know those existed! lol very helpfull!

Posted: Sun May 12, 2002 8:00 am
by qads
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!");
}
?>