Jump to content


Photo

Newsletter sign up form


  • Please log in to reply
1 reply to this topic

#1 Mal1

Mal1

    Advanced Member

  • Members
  • PipPipPip
  • 64 posts

Posted 02 March 2014 - 10:38 AM

I'm trying to create a newsletter signup form that asks for a users email and on submit it emails be the submitted email but also posts that email onto another page (with title, name etc.) where the user can submit more details.

 

So far I can get it to pass on to the new page and get the email to automatically post into the extended form which when submitted works fine. But I am stumped on how to do this while sending the initial email as well?

 

I've tried setting the initial action to use php to handle sending the initial email then redirecting to the extended newsletter page but then it doesn't keep the submitted email for the extended form...

 

Sorry if it's not a very clear description.



#2 Ch0cu3r

Ch0cu3r

    Advanced Member

  • Moderators
  • 2,303 posts

Posted 02 March 2014 - 12:22 PM

After sending the email, dont redirect. Just display the second form directly after

<?php

if(signup form has been submitted)
{
    // send email
}

?>

// display second form

Edited by Ch0cu3r, 02 March 2014 - 12:24 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com