cooldude832 Posted September 4, 2008 Share Posted September 4, 2008 Is there any difference to these i.e <form action="blah.php"> and <a href="blah.php"> in the sense of how apache handles request? Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/ Share on other sites More sharing options...
wildteen88 Posted September 4, 2008 Share Posted September 4, 2008 They are two different requests. A form allows you to submit two different types of data - GET and POST. Whereas an anchor tag can only send GET data. Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633825 Share on other sites More sharing options...
cooldude832 Posted September 4, 2008 Author Share Posted September 4, 2008 well when I use the same echoed line as a form action my .htaccess mod pops out a 500 error (can't diagnostic it properly) When I use the same link (urlencoded same way) the .htaccess mod executes as expected. Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633832 Share on other sites More sharing options...
wildteen88 Posted September 4, 2008 Share Posted September 4, 2008 What are you doing in the .htaccesss applying mod_rewrite rules? In order to understand why you're getting a 500 Internal Server error message you should check your sites error log. Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633834 Share on other sites More sharing options...
cooldude832 Posted September 4, 2008 Author Share Posted September 4, 2008 I can't get the error log in my 1&1 account. Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633891 Share on other sites More sharing options...
cooldude832 Posted September 4, 2008 Author Share Posted September 4, 2008 I narrowed it down to this There is an error processing the php in the page's portion that processes if(!empty($_POST)) and some how th epage won't render any one see the error (its syntaxical) <?Php if(!empty($_POST)){ $subject = "New Foreclosure Specialist Inquery made at ".EMAIL_DOMAIN; $headers = "From: info@".EMAIL_DOMAIN." <info@".EMAIL_DOMAIN.">\r\n"; $headers .= "Reply-To: info@".EMALI_DOMAIN."\r\n"; $headers .= "Return-Path: info@".EMAIL_DOMAIN."\r\n"; $headers .= "BCC: hr@".EMAIL_DOMAIN."\r\n"; $headers .= "X-Mailer: PHP/".phpversion()."\r\n"; $message = "Form Submitted from your personal homagepage at ".EMAIL_DOMAIN." at ".date('m-d-y, g:i:s')."\r\n You can review all forms sent from your homepage by going to http://www.savemyhomeusa.com/cpanel.php \r\n\r\n Information:\r\n\r\n Name: ".$_POST['firstname']." ".$_POST['lastname']."\r\n Email: ".$_POST['email']."\r\n Phone: ".$_POST['phone']."\r\n Best Time to Call: ".$_POST['calltime']."\r\n Mortgage Status: ".$_POST['status']."\r\n Problem:\r\n".$_POST['problem']."\r\n\r\n\r\n Thank You,\r\n savemyhomeusa.com staff.\r\n\r\n\r\n This is a server generated emali please do not respond to it."; if(mail($row['Email1'],$subject,$message,$headers)){ echo "<br /><Br />Your message has been sent.<br /><Br />"; $_SESSION['Visitor']['FS_Form'] = "1"; } else{ echo "<br /><br />There was an error sending your message.<br /><br />"; } } ?> Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633905 Share on other sites More sharing options...
cooldude832 Posted September 4, 2008 Author Share Posted September 4, 2008 I've narrowed it down to the mail() line <?php mail($row['Email1'],$subject,$message,$headers); ?> Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633911 Share on other sites More sharing options...
cooldude832 Posted September 4, 2008 Author Share Posted September 4, 2008 I didn't have a variable declared when I tried to use it and the php error never populated just a 500 error so its solved but it was ugly Link to comment https://forums.phpfreaks.com/topic/122728-form-action-path-vs-an-anchors-reference/#findComment-633916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.