Don't Know What's Wrong?

liunx

Guest
I'm not sure what's wrong with my script, posted <a href="http://www.paragonsuites.com/paragon_reservations.html" target="_blank">here.</a><br /><br />Here is what is at the top of my config.php file:<br /><br />$allowed_email_recipients_array = array('paragonsuites.com','www.paragonsuites.com', '[email protected]');<br /><br />$referers = array('66.11.164.208', 'paragonsuites.com','www.paragonsuites.com');<br />/*66.11.164.208 is IP for TCH... helps new sites work <br />Should not be required after propogation<br />But doesn't hurt*/<br /><br />$recipient = "[email protected]";<br /><br />Can I place the config.php, mailit.php files in the same folder? Do they need to be in different folders? Also, I'm on a Mac, does that make any difference? Sorry, I'm very new to php - the webhost I have to post this site on won't accept good ol' Formmail so I am trying to find an easy alternative.<br /><br />I keep getting the "invalid recipient" message after I test the form that others seem to be getting. I am uploading the files using an ftp client. I have trashed the cache several times in both browsers I've tested it on. Same results. Any way you could help? I would really appreciate it.<br /><br />James<!--content-->
Hi James<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> Welcome to the Family <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/kicking.gif" style="vertical-align:middle" emoid=":dance:" border="0" alt="kicking.gif" /> <br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Can I place the config.php, mailit.php files in the same folder? Do they need to be in different folders?<!--QuoteEnd--></div><!--QuoteEEnd-->As long as you provide the correct links to them, the files can be anywhere. From a security and organisational viewpoint I prefer not to have them in the same directory as my main html code.<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->I'm on a Mac, does that make any difference?<!--QuoteEnd--></div><!--QuoteEEnd-->No, that doesn't make any difference, as long as you are uploading them correctly to the server.<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->I keep getting the "invalid recipient" message<!--QuoteEnd--></div><!--QuoteEEnd-->I would check the files to make sure that none have been chopped, either in your editing, or by the FTP upload. I would guess this is the most likely cause of the error. If you can't find any errors, then post again, and we'll take a look at the code.<br /><br />Andy<!--content-->
andy,<br /><br />Thanks for your help. The form is still not working properly, but now at least its redirecting to the confirmation page. I noticed you were online and was wondering if you had any more advice on this. The receiver is still not getting anything in their email, and I am not getting any reply messages since I set the config.php to send a reply message.<br /><br />Here is the url: <a href="http://www.paragonsuites.com/paragon_reservations.html" target="_blank">http://www.paragonsuites.com/paragon_reservations.html</a><br /><br />Let me know if you see anything else I might try.<br /><br />Jared<!--content-->
Jared,<br /><br />I need to look at the source code to take this much further.<br /><br />Can you PM or IM me?<br /><br />Andy<!--content-->
In the very near future, I will be updating the help documents that go with this script.<br /><br />I secong Jimuni's thoughts that you might be using cpanel to ftp the script and edit it or you're using another tool that cuts the code at inappropriate places. Try using a third party ftp client and starting over with a fresh copy of the code.<!--content-->
 
Back
Top