drukpa Posted December 22, 2008 Share Posted December 22, 2008 Hi Guys, I need to edit a php survey application to use our foundation's autoresponder and not the built in autoresponder. A visitor will visit the page, answer some questions and supply his name and email address. On submit the visitor will be given a survey results page. At the same time the name and email address will be subscribed to an autoresponder. This is where I'm stuck. I don't know how to convert the standard HTML subscribe form into PHP so it will work with this survey application. Our standard subscribe HTML form is: <form name="form1" method="post" action="http://www.mcssl.com/app/contactsave.asp"> <input name="merchantid" type="hidden" id="merchantid" value="333333"> <input name="ARThankyouURL" type="hidden" id="ARThankyouURL" value="https://www.mydomain.com/thankyou.html"> <input name="copyarresponse" type="hidden" id="copyarresponse" value="1"> <input name="custom" type="hidden" id="custom" value="0"> <input name="defaultar" type="hidden" id="defaultar" value="176247"> <input name="allowmulti" type="hidden" id="allowmulti" value="0"> <input name="visiblefields" type="hidden" id="visiblefields" value="Name,Email1"> <input name="requiredfields" type="hidden" id="requiredfields" value="Name,Email1"> <table> <tr> <td>Name</td> <td><input name="Name" type="text" size="40"></td> </tr> <tr> <td>Email</td> <td><input name="Email1" type="text" size="40"></td> </tr> <tr align="center"> <td colspan="2"> <input type="Submit" name="cmdSubmit" value="Submit"> </td> </tr> </table> </form> I need to convert this form into something PHP. ??? It needs to go into the follow section (in the survey application), if I've looked correctly. There is roughly 270 lines on the surveysubmit.php file and this is the only section I've identified that submits the visitor's name and email address. if(""!="") { $ff=fopen("http://www.getresponse.com/cgi-bin/add.cgi?category1=&category2=".$_POST["yourname"]."&category3=".$_POST["youremail"]."&confirmation=&error_page=&getpostdata=get","r"); if($ff) fclose($ff); } The getresponse.com uses a different way to subscriber a user. Any suggestions would be very helpful! Thanks in advance. Drukpa. Link to comment https://forums.phpfreaks.com/topic/138001-how-would-you-convert-an-html-autoresponder-form-to-php/ Share on other sites More sharing options...
trq Posted December 22, 2008 Share Posted December 22, 2008 All you need do is change your forms action form this http://www.mcssl.com/app/contactsave.asp to a new php script. Its the contactsave.asp script you might want to convert to php. Link to comment https://forums.phpfreaks.com/topic/138001-how-would-you-convert-an-html-autoresponder-form-to-php/#findComment-721259 Share on other sites More sharing options...
drukpa Posted December 22, 2008 Author Share Posted December 22, 2008 Hi Thorpe, Thank you for the reply. Unfortunately I do not have access to the contactsave.asp file. It comes from our shopping cart provider. I've also contacted them to find out if I can pass any values to the asp file...waiting on a reply. Not being a programmer, this may be a silly question - isn't there a way to have an intermediate file that takes the visitor name and email address and pushes this information from the survey application through the HTML form below? Thank you kindly. Drukpa Link to comment https://forums.phpfreaks.com/topic/138001-how-would-you-convert-an-html-autoresponder-form-to-php/#findComment-721272 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.