Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-05-28, 01:28 PM   #1
Xallow
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
Join Date: May 2006
Location: Denmark
Posts: 447
Send a message via ICQ to Xallow
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
Xallow is offline   Reply With Quote
Old 2006-06-17, 05:38 PM   #2
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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:
<script type="text/javascript">
function popupsubmit(){
window.open('http://www.pornpartyporn.com/submited.html', 'iframe1', 'height=400,width=400,scrollbars=no');
}
</script>
<form method="post" action="mailto:webmaster@pornpartyporn.com" onsubmit="popupsubmit();">
Form data here
<input type="submit" value="Submit Form by Email">
</form>
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:32 PM.


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