ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: jmccabe on September 07, 2007, 11:07:25 am

Title: How to NOT have a signup success page or redirect?
Post by: jmccabe on September 07, 2007, 11:07:25 am
I have a javascript which replaces the signup form on the page with a message for the submitter to check their email for a confirm link, without taking them off the page.

How can I set up my list/signup form so that I don't get a success page or redirect?

Thanks...

John McCabe
Title: How to NOT have a signup success page or redirect?
Post by: jmccabe on September 07, 2007, 11:23:27 am
I found my own answer by snooping around on Google...

1. Create a page called "nonewpage.php" containing the following code:

Code: [Select]
<?phpheader(”HTTP/1.1 204 No Response”);?>


2. Upload the new page to your server.

3. Set the redirect link to the URL of the nonewpage.php file.

The header code tells the browser that there's nothing to see at the redirect URL, so the browser stays on the same page.

More details here:

http://biztoolsbrief.com/2007/06/20/tiny-scripts-for-stealth-form-submissions/
Title: How to NOT have a signup success page or redirect?
Post by: David-jp on October 19, 2007, 03:08:58 am
I use the following code on the page its redirected to:
<body onload="setTimeout('window.history.back()', 3000);">

This allows a short delay before redirecting back to the referring page. This is enough time to tell the user that they were sent a confirmation email, and to safelist the email address.

David