Form script

Hi,

I’m looking for a script that allows you to make forum buttons “onclick submitable”
This means when people click on a “radiobutton” in a form, the form will submit it self!

Guess it will be something like this:

add to the radiobutton code :
onclick:javascript(document.submit) or something

Already tryed that myself, but didn’t work!

Any other suggestion?


<?php
if($blaat) {
mail("blabla@blabla.bla", "$subject", "$text");
}
else {
echo "Sorry";
}
?>

I hope this will work.

? don’t see any auto submit in this

so when someone presses the radiobutton it has to submit by itself (without clicking on the submit button)

I’m almost sure my code will work. Perhaps the syntax isn’t 100%…

If you hit the radio button it will submit the form information.

I am not 100% sure but I think this must work.

This stands in the script:

If you hit ‘blaat’ or whatever it will submit the form information.

Originally posted by The PhantoM
[B]


<?php
if($blaat) {
mail("blabla@blabla.bla", "$subject", "$text");
}
else {
echo "Sorry";
}
?>


I hope this will work. [/B]

Yes, alright but this will submit the form to an e-mail adres and that is not the point!
And the form is in HTML so…!