Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Creating an Opt In Box

Posted by: ukbsktbll Nov 13 2014, 11:09 AM

I am pretty new to html. I am wanting to create an opt in box to gather peoples emails/information. I would like after the person fills out their information and clicks the submit button that it will link them to another site of my choosing. Any help with this would be greatly appreciated.

Posted by: Christian J Nov 13 2014, 04:34 PM

That's the normal behavior of a form: when submitted, the form will load the URL specified in its ACTION attribute (this URL also contains the server side script that processes the form submission). See also http://htmlhelp.com/faq/html/forms.html#form-howto

Posted by: pandy Nov 13 2014, 04:49 PM

If you want them to be sent to another page than one that contains the script, you need to modify the script so it redirects the browser to the URL in question last thing it does.

Posted by: ukbsktbll Nov 13 2014, 06:53 PM

Thanks for the responses. I review the link, it had some useful information. The issue is I am very new to html and don't really understand it well enough. I think I have found the way to create a form but am still unsure of how to send someone to another website once submitted.

Posted by: pandy Nov 13 2014, 09:58 PM

Well, as said, if the script isn't embedded in your thank you page, you need to modify the script so it redirects to said page. Or generates it. Post in the server side scripting forum. Maybe someone can help you with that.

Posted by: Christian J Nov 14 2014, 06:28 AM

QUOTE(ukbsktbll @ Nov 14 2014, 12:53 AM) *

I am very new to html and don't really understand it well enough. I think I have found the way to create a form but am still unsure of how to send someone to another website once submitted.

The script pandy mentioned isn't part of HTML, it's a separate language (such as http://php.net/manual/en/) that runs on the server. You can often find readymade such scripts on the web.

Posted by: pandy Nov 14 2014, 07:44 PM

I assumed he had one in place already since he didn't mention a problem with collecting the addies, just with the thankyou page.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)