Anyone know how to send HTML multipage form with PHP script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
woohoo14
Forum Newbie
Posts: 6
Joined: Thu May 01, 2014 3:46 pm

Anyone know how to send HTML multipage form with PHP script

Post by woohoo14 »

Have been trying to send form instance (questionsform.html, which is a multipage form, dozens of data fields) by a PHP script
-is there any standard code to use which will capture form content & forward by email?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Anyone know how to send HTML multipage form with PHP scr

Post by requinix »

$_POST has the data. Do whatever you want to do with it so that it is readable, then email it using the built-in mail() or a library like SwiftMailer or PHPMailer.
woohoo14
Forum Newbie
Posts: 6
Joined: Thu May 01, 2014 3:46 pm

Re: Anyone know how to send HTML multipage form with PHP scr

Post by woohoo14 »

Thanks requinix, much appreciated -by any chance is there sample code for this available (using PHPmailer)?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Anyone know how to send HTML multipage form with PHP scr

Post by requinix »

Take a look at their home on Github: they have a number of examples there, not to mention the documentation.
woohoo14
Forum Newbie
Posts: 6
Joined: Thu May 01, 2014 3:46 pm

Re: Anyone know how to send HTML multipage form with PHP scr

Post by woohoo14 »

Awesome, thanks!
Post Reply