Author Topic: How to NOT have a signup success page or redirect?  (Read 2049 times)

jmccabe

  • Posts: 6
    • View Profile
How to NOT have a signup success page or redirect?
« 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

jmccabe

  • Posts: 6
    • View Profile
How to NOT have a signup success page or redirect?
« Reply #1 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/

David-jp

  • Posts: 4
    • View Profile
How to NOT have a signup success page or redirect?
« Reply #2 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
Discover How to Start-Up and Run a Profitable Membership Site
==> Membership Academy <==
Listmail Install Video, aMember integration.