Forum Moderators: open

Message Too Old, No Replies

Page forwarding after page submission via mailto:

         

pixalant

8:23 pm on Oct 18, 2003 (gmt 0)

10+ Year Member



Here is my problem. I have set up a form with validation, after all the fields are filled out correctly, the info is brought to a user verification page with a submit and back button (in case they want to change something). If the user clicks submit, the information is sent to an email address through the action in the form tag and the page is forwarded to a final thank-you page. This works great on a PC... however, the Macintosh doesn't want to forward the page. It mails the info, but stays right where it is.

Can anyone help. I need this, like, last week on Wednesday.

DrDoc

10:03 pm on Oct 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you considered a server side script solution, such as PHP/Perl?

pixalant

12:06 am on Oct 19, 2003 (gmt 0)

10+ Year Member



Yes, I even suggested it, but the server doesn't support any server side scripts.

The URL to take a look is

<snip>

I hope someone can take a look.

The file that isn't forwarding is confirmform1.htm

[edited by: korkus2000 at 2:37 am (utc) on Oct. 20, 2003]
[edit reason] No code/site reviews please [/edit]

DrDoc

2:34 am on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the server doesn't support any server side scripts

What kind of server are you running it on?

korkus2000

2:47 am on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any possibility of CGI. Formail would be something real easy to set up. The mailto protocal has many problems and works differently from OS to OS and from browser to browser. It really is a bad solution. The warning alone that browsers give when the form is submitted scares people away.

pixalant

2:49 am on Oct 20, 2003 (gmt 0)

10+ Year Member



I am not sure... when I was in contact with them, they refused to support any of the script options I had. Have you been able to look at the script?

Here it is:

<script>
document.write("<form action='mailto:pixalant@example.ca' method='post' enctype='text/plain' name='form' id='register' onSubmit='doVerify()'>");

function doVerify()
{
window.location = "regsuccess1.htm"
}

document.write("<input type='Hidden' name='" + Title +"'>");
document.write("<input type='Hidden' name='" + Name +"'>");
document.write("<input type='Hidden' name='" + Surname +"'>");
document.write("<input type='Hidden' name='" + Address +"'>");
document.write("<input type='Hidden' name='" + City +"'>");
document.write("<input type='Hidden' name='" + Province +"'>");
document.write("<input type='Hidden' name='" + PostalCode +"'>");
document.write("<input type='Hidden' name='" + HomePhone +"'>");
document.write("<input type='Hidden' name='" + BusinessPhone +"'>");
document.write("<input type='Hidden' name='" + Fax +"'>");
document.write("<input type='Hidden' name='" + Email +"'>");
document.write("<input type='Hidden' name='" + Age +"'>");
document.write("<input type='Hidden' name='" + Companion +"'>");
document.write("<input type='Hidden' name='" + Looking +"'>");
document.write("<input type='Hidden' name='" + SingleAccomadation +"'>");
document.write("<input type='Hidden' name='" + Preferences +"'>");
document.write("<input type='Hidden' name='" + Allergies +"'>");
document.write("<input type='Hidden' name='" + Vacations +"'>");
document.write("<input type='Hidden' name='" + Referred +"'>");

</script>

<input type="submit" value="Submit!">&nbsp;&nbsp;&nbsp;<input type=button value="Back" onClick="history.go(-1)">

</form>

[edited by: korkus2000 at 2:51 am (utc) on Oct. 20, 2003]
[edit reason] examplified email [/edit]

korkus2000

2:53 am on Oct 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>they refused to support any of the script options I had

Are you paying to host or is this internal? You should have access to cgi.

pixalant

3:02 am on Oct 20, 2003 (gmt 0)

10+ Year Member



No this is through a third party client, and I have no control over it. I have relayed the info that javascript can be tempermental especially across platfrom and the best thing to do in my opinion is to switch servers, but my client is being stubborn, and I have until tomorrow morning to make it work