Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   This is Weird, help needed (http://www.greenguysboard.com/board/showthread.php?t=31803)

Xallow 2006-05-28 01:28 PM

This is Weird, help needed
 
I am trying to get a form to do 2 things when submitted using javascript
1: Send me an e-mail
2: Popup a Submitted window

It works when I try it on my own computer, but when I put it up to the server it can't find the submitted page (yes, it is there) and when I click refresh page it finds it no problem.

here is the function I am using:

function OnButton1()
{
document.Submit.action = "mailto:webmaster@pornpartyporn.com" // First target
document.Submit.target = "iframe1"; // Open in a iframe
document.Submit.submit(); // Submit the page
document.Submit.action = "http://www.pornpartyporn.com/submited.html" // Second target
document.Submit.submit(); // Submit the page
return false;
}

that there is only 1 t in "submited.html" is not a mistake, that is what the page is called

Any help is appreciated

oast 2006-06-17 05:38 PM

Quote:

Originally Posted by Xallow
I am trying to get a form to do 2 things when submitted using javascript
1: Send me an e-mail
2: Popup a Submitted window

Instead of sending by email, can you not process with a script, which will validate the input properly, then redirect to a "submitted" page if all is OK?

In any event, this does what you asked.
Code:



Form data here




All times are GMT -4. The time now is 01:28 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc