|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 11
|
|
| Author |
|
|
Stranger Joined: Jul 18, 2008 Post Count: 12 Status: Offline |
Ok, so I have a form for contact us at: www.corradocomputers.com/feedback.html and its fine but i used a site's wizard to create it and the php sever side script. Now I want to create another form on the error page, see it by going to: www.corradocomputers.com/ with any text after the forward slash but i dont know what to do in the new php script for it. I tried to go through the one that I have and change it to fit my needs but I get: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /homepages/42/d251459630/htdocs/notfound.php on line 55. Here is my coding: PHP coding under filename: 'notfound.php' :You can view it at www.corradocomputers.com/ with any text after the forward slash ---------------------------------------- [Edit 5 times, last edit by aviaf at Aug 20, 2008 8:46:41 PM] |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
Can you point out which line in the code sample above is line 55? It would make looking for the problem much easier. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Jul 18, 2008 Post Count: 12 Status: Offline |
oops, ok done |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
Try this... instead of this line: if (empty($broken_link_url)) { use this: if ($broken_link_url == "") { Looks like the "empty" function you are calling can't be used with strings, only with variables, which is why you are getting the error. http://us2.php.net/empty Try that code, and post again if it doesn't fix your problem. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Jul 18, 2008 Post Count: 12 Status: Offline |
ok changed it, now no error appears, the page seems to submit but instead of going to the thank you page, it then goes to **/error404.html and no email is received |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
The easiest way to debug this is probably to add echo statements into your PHP script, and see where any issues might be occurring. One other thing to note... if you are testing the script on your local machine (not on your hosting server) you most likely won't receive emails. In that case, test this script on your server. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Jul 18, 2008 Post Count: 12 Status: Offline |
ok, i dont know what u mean by adding echo statements and what would that do exactly as in how do i use it also, everytime i change the script i update it on the server and test it there edit at 12:08 EST: goin to bed, talk to u tomorrow, thx for the help so far, again ---------------------------------------- [Edit 3 times, last edit by aviaf at Aug 20, 2008 11:08:45 PM] |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
I just tested this out... The form seems to work fine for me, and redirects correctly to the thank you page. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
Stranger Joined: Jul 18, 2008 Post Count: 12 Status: Offline |
i tried it and it still doesnt redirect me properly and i didnt receive any message from when you tested it either |
||
|
|
Advanced Member USA Joined: Aug 14, 2007 Post Count: 1129 Status: Offline |
i tried it and it still doesnt redirect me properly and i didnt receive any message from when you tested it either That's because I changed the script so it pointed to my email address. I received the email just fine. Have you made sure that the redirect links that you are using actually exist and point to the proper files? Secondly, have you tried to use a different email address in your script? Perhaps the period in the middle of your email address is throwing things off? Otherwise... I'm out of ideas. As I said, the script worked fine for me. ---------------------------------------- Benjamin Falk | student : designer : developer Twitter: falkencreative |
||
|
|
|
|
|
Current timezone is GMT May 19, 2013 9:59:07 PM |