Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Forms and popups

Status
Not open for further replies.

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
Does anyone know how to have your redirect page (after submitting a form) popup rather than a large page with little content?

I've looked at w3schools.com and htmlgoodies, but no luck...
 

NameTower

Level 9
Legacy Platinum Member
Joined
Apr 21, 2003
Messages
2,886
Reaction score
0
its just the script your using
if you show me i would probably know in any language
look for a javascript for a popup script
find that HTML where you enter bthe text afetr the form is submited and POP it UP!
 

Whois-Search

Level 9
Legacy Platinum Member
Joined
Apr 28, 2002
Messages
3,119
Reaction score
1
I think you use "#" on the form action post and have a pop up :

http://javascript.internet.com/generators/popup-window.html

then have your mailback on that page :


<?php

mail("[email protected]", "Your subject",

"Name: $_POST[name]

Email: $_POST

Comments: $_POST[comments]

");

?>



<html>
<head>
<title>Message Sent</title>
<body>
<center>
<font face="Verdana" size=5>
<br>
<br>
<br>
<br><b>Message sent !</b>
<br>
<br>
<br>
<br><a href="yourlink.html">Close</a>
<center>
</body>
</html>
 

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
???

What are you guys talking about?

I am not sure what you want.

Maybe this is just above me..
 

dmyre

Level 9
Legacy Exclusive Member
Joined
Apr 6, 2002
Messages
2,687
Reaction score
71
I have a form on Seagoville.com which redirects to http://seagoville.com/thankyou.htm after it has been submitted.

I would like to just have the thankyou.htm page popup after the form is submitted, instead of being transferred to a new page. I'm sure it can be done, but will probably just leave it the way it is.

Thanks for everyone's help...
 

lgolding

Level 3
Legacy Platinum Member
Joined
Jan 25, 2003
Messages
73
Reaction score
0
are you using a cgi mail script like 'formmail.cgi'?

The above php example and other ways would be simpler, but if limited to cgi access and knowledge of the formmail.cgi stuff it can still be done easily.

If so, the formmail script should have a redirect 'target' value that can be set, which can be set to the NAME of a new window you can pop up during the submit process. The scripts default target is the self window which is why you get the thankyou wiping out your page.

If so, change the onsubmit function in your mail form html to a function that pops open the window you want and NAME it, ie: mailWin=window.open("", "mailsent", WinProps); where 'mailsent' becomes the new windows name. In that function immediately after the new window pop, let the submit go, don't forget the 'return true' at the end. Now in the formmail script itself add a line, or in the mail form itself set a hidden value of 'target="mailsent"'.

An example, my site uses a little palmtop as the user interface, and on submit of mail I needed the sent confirmation (the thankyou) to return in the palm top screen ( an Iframe, just like a new window, with a name=target), instead of wiping out my palmtop completely with a thankyou page replacing it! I did use the typical formmail.cgi with these modifications.

http://www.choicenames.com/index.html?mail


good luck.
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom