Exploding Garrmondo Weiner Interactive Swiss Army Penis

Exploding Garrmondo Weiner Interactive Swiss Army Penis (http://www.gamingforce.org/forums/index.php)
-   Help Desk (http://www.gamingforce.org/forums/forumdisplay.php?f=36)
-   -   HTML help! Trying to make a simple form (replying back) (http://www.gamingforce.org/forums/showthread.php?t=25574)

gaming Oct 3, 2007 02:31 PM

HTML help! Trying to make a simple form (replying back)
 
Hi guys!

I'm trying to make a simple feedback form for guests to send on my website.
I have the code to make it send the text to my e-mail, but I want the guest to see some kind of confirmation. Maybe a windows message popup on the screen after he have pushed the send button.

Does anybody know the code for this...?

Fluffykitten McGrundlepuss Oct 3, 2007 03:40 PM

Board support is more for problems relating directly to the board itself. The good people in the Help Desk might be able to help you out though!

This moderation brought to you by the letter N and the number 73. Fuck the iPhone, get some Nokia in your life.

Zergrinch Oct 5, 2007 09:56 AM

Javascript alert might work:

<script language="JavaScript" type="text/javascript">alert("Thank you for your feedback!")</script>

I don't remember how to shoehorn this into the submit button so that it activates on click...

gaming Oct 6, 2007 04:30 AM

Thanks Zergrinch! I'll give it a try!

Zergrinch Oct 6, 2007 10:00 AM

Ok, here's what you can do:

Put this in the <head> section:

Code:

<script>
function clikme(){
alert("Congratulations, you have clicked the button!")
}
</script>

Invoke it later by adding this to your submit button tags:

Code:

<input type="submit" ... blahblah ... onclick="clikme()">
</form>



All times are GMT -5. The time now is 04:16 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.