|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP in Outlook email
I am using email surveys. They work fine everywher but in Outlook. In Outlook the first time the user submits the survey, respones do not post. The browser that echos the answers shows no responses. If they then refresh the browser, the answers are sent.
You can get a copy of the survey at www.thefatblack*****cat.com/reservations.php. This is a test site so you can enter any data you'd like, the real site is at www.cafewha.com. If you make a reservation, you will get a survey back. I'll also post my code below: <html> <head> <title>Visit Questionaire</title> </head> <body bgcolor="#000033"> <center> <table width="730" border="0" cellpadding="0" cellspacing="0"><tr> <td> <p align="center"> <img border="0" src="http://www.cafewha.com/images/custsurvlogofb.jpg" width="716" height="87"></td> <tr> <td></td> </tr></table> <table bgcolor="#FFFFFF" width="730" border="0" cellpadding="0" cellspacing="0"><tr> <td width="530" align="left" style="border: 1px groove #008000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"> <p style="margin-left: 25px; margin-right: 7px"> <br> By allowing me direct communication with our customers, the Internet provides me a fantastic tool to make the Fat Black *****cat as good as it can be. By removing the middlemen (and women) who often filter out important information I can get a clearer picture of our strengths and weaknesses.</p> <p style="margin-left: 25px; margin-right: 7px">If you would take the time to answer these few questions, you would be doing me an enormous favor (and don't be afraid to tell the truth!). I am the only one who has access to these surveys.</p> <p style="margin-left: 25px; margin-right: 7px">Thank you in advance.</p> <p style="margin-left: 25px; margin-right: 7px">Sincerely,</p> <p style="margin-left: 25px; margin-right: 7px; margin-top: 0; margin-bottom: 0"> Noam Dworman</p> <p style="margin-left: 25px; margin-right: 7px; margin-top: 0; margin-bottom: 0"> Owner</p> <p style="margin-left: 25px; margin-right: 7px; margin-top: 0; margin-bottom: 0"> The Fat Black *****cat </p><a href="http://www.thefatblack*****cat.com/survey.php?setdate=__DATE__&emailaddress=__EMAIL__&resID=__SIZE__&settime=__TIME__"> Please click here if this survey does not work in your email system </a> <p style="margin-left: 25px; margin-right: 7px">Visit: __DATE__ at __TIME__.<br> <br> </p> <form action="http://www.thefatblack*****cat.com/addtosurvey.php" method="POST"> <p style="margin-left: 25px; margin-right: 7px">Overall, how did you enjoy yourself at the Fat Black? <br> <input type="RADIO" name="enjoy" value="Excellent"> - Excellent <br> <input type="RADIO" name="enjoy" value="Good"> - Good <br> <input type="RADIO" name="enjoy" value="Satisfactory"> - Satisfactory <br> <input type="RADIO" name="enjoy" value="Needs Improvement"> - Needs Improvement <br> <input type="RADIO" name="enjoy" value="Awful"> - Awful <br> <br> How would you rate the speed of service? <br> <input type="RADIO" name="speed" value="Excellent"> - Excellent <br> <input type="RADIO" name="speed" value="Good"> - Good <br> <input type="RADIO" name="speed" value="Satisfactory"> - Satisfactory <br> <input type="RADIO" name="speed" value="Needs Improvement"> - Needs Improvement <br> <input type="RADIO" name="speed" value="Awful"> - Awful <br> <br> How would you rate the attitude of your server? <br> <input type="RADIO" name="attitude" value="Excellent"> - Excellent <br> <input type="RADIO" name="attitude" value="Good"> - Good <br> <input type="RADIO" name="attitude" value="Satisfactory"> - Satisfactory <br> <input type="RADIO" name="attitude" value="Needs Improvement"> - Needs Improvement <br> <input type="RADIO" name="attitude" value="Awful"> - Awful <br> <br> Can you give the name or a description (sex, race, height) of your server? <br> <input name="server" type="text" size="60"><br><br> How would you rate the quality of your food and drinks? <br> <input type="RADIO" name="food" value="Excellent"> - Excellent <br> <input type="RADIO" name="food" value="Good"> - Good <br> <input type="RADIO" name="food" value="Satisfactory"> - Satisfactory <br> <input type="RADIO" name="food" value="Needs Improvement"> - Needs Improvement <br> <input type="RADIO" name="food" value="Awful"> - Awful <br> <br> How would you rate our atmosphere? <br> <input type="RADIO" name="show" value="Excellent"> - Excellent <br> <input type="RADIO" name="show" value="Good"> - Good <br> <input type="RADIO" name="show" value="Satisfactory"> - Satisfactory <br> <input type="RADIO" name="show" value="Needs Improvement"> - Needs Improvement <br> <input type="RADIO" name="show" value="Awful"> - Awful <br> <br> Was this your first visit? <br> <input type="RADIO" name="first" value="Yes"> - Yes <br> <input type="RADIO" name="first" value="No"> - No <br> <br> Would you recommend us to friends? <br> <input type="RADIO" name="recommend" value="Yes"> - Yes <br> <input type="RADIO" name="recommend" value="No"> - No <br> <br> Any other comments (please be blunt)? <br> <textarea name="comments" rows="10" cols="60"></textarea><br> <br> <input type="hidden" name="emailaddress" value="__EMAIL__"> <input type="hidden" name="setdate" value="__DATE__"> <input type="hidden" name="settime" value="__TIME__"> <input type="hidden" name="resID" value="__SIZE__"> <input type="submit" name="button" value="Send it!"> -- <INPUT TYPE="reset" VALUE="Clear"> </p> </form> </td> </tr> </table> <table bgcolor="#CCCCCC" width="730" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <center> <br> <font size="1" color="#000033"> </font> </center> </td> </tr> </table> </center> </body> </html> |
|
#2
|
||||
|
||||
|
In the future, wrap your code in [code][/code] blocks (or [php] blocks) when posting to the forum...
a less initimidating post is more likely to get a response... As for your question... the code you've posted is simple HTML, no? Perhaps Outlook has some security measures in place to keep emails from posting to websites... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP in Outlook email |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|