Forum Moderators: open

Message Too Old, No Replies

Need form help

Combine a mailto and confirmation page

         

AlabamaCatGirl

1:16 am on Nov 23, 2003 (gmt 0)

10+ Year Member



Hello everyone! I've lurked for months and am finally becoming a real member.

I know this is a simple question, but I'm away from my office and can't answer this for a client. Can anyone help?

She doesn't have access to CGI form processing scripts (which is all I've ever used!) but wants to use a MAILTO to email the form to herself. NO problem there, BUT she wants the visitors to see a confirmation page after they submit the form.

My first thought: use a MAILTO in the action attribute and use the confirmation page address as a hidden field like this:

<form method="get" action="mailto:problem@problemclient.com">
<input type="hidden" name="mail" value="confirmation.html">

Now, that sends the email, but I get no confirmation page.

So I reverse them and put the email as the hidden field and the confirmation page address as the action attribute. I get the confirmation page, but no email.

Is there an answer to this? I'm trying to vacation, but driving myself crazy over a simple form question.

Help, please!

dcrombie

1:50 pm on Nov 23, 2003 (gmt 0)



Try searching on Google for "JavaScript Mail Form". I know you can display the confirmation message in a pop-up window but haven't tried to redirect to a new page. Should be do-able.

bobbee

6:05 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



>She doesn't have access to CGI form processing scripts

Are _all_ scripts blocked or just ones running from cgi-bin?

If she can run PHP then what you are looking for is easy to do.

Bob

AlabamaCatGirl

7:40 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



Thanks to both of you. She's using a very low cost host and so doesn't have PHP either. My next goal is getting the site moved to some decent hosting.

But the JavaScript mail form is a good stopgap. I found one that does let me use a confirmation page.

Thanks again!

moomoo

6:20 am on Nov 24, 2003 (gmt 0)

10+ Year Member



I don't know whether the script you got made a confirmation page as an alert (I would hate that), but it's easy enough for Javascript to write out the confirmation page entirely, including writing out the form's contents to another form which has mailto. The biggest problem with this is how to allow the user to go back, as some web browsers won't give javascript-generated pages their own history entry...

Anyway, it seems the problem's solved...

- Joel