
Fujitsu, still dont work, it just loads a blank page, but stil submits to the shoutbox
Edit: If someone could just type out the whole code and make it work i would be greatful..
Also why i am here, could anyone post a code to disable HTML in the form fields ;P
Last edited by Drugs; 08-08-2006 at 09:17 PM.
Lolz, coz i pwnt it :p
Ima rider.
In your HEAD tag add
And In Your <input> tag addCode:<script type="text/javascript"> function blank () { var name = document.FORMNAME.FIELD NAME; var message = document.FORMNAME.FIELD NAME; if (name.value == "") { window.alert("Please fill in your name."); } if (message.value == "") { window.alert("Please fill in a message."); } } </script>
The code I posted before wouldnt work, so I edited it.Code:onclick="blank();"
Last edited by Fujitsu; 08-08-2006 at 09:24 PM.
PHP Code:[LEFT]<?[/LEFT]
[LEFT]$name = $_GET['name'];[/LEFT]
[LEFT]echo "Hi, your name is $name";[/LEFT]
[LEFT]?>[/LEFT]
[LEFT][/LEFT]
Fujitsu and in which file am i putting that in?
Lmao you really havent got a clue have you![]()
I presume in the shoutbox.php file but i am jsut making sure.
Yeh, it is.
Ima rider.
Yes. *Longer Post*
PHP Code:[LEFT]<?[/LEFT]
[LEFT]$name = $_GET['name'];[/LEFT]
[LEFT]echo "Hi, your name is $name";[/LEFT]
[LEFT]?>[/LEFT]
[LEFT][/LEFT]
For this bit;
onclick="blank();"
Where do i put that??
Want to hide these adverts? Register an account for free!