November 15, 200916 yr Hi Guys I'm having troubles with Two things on my Online ePortfolio: 1) I can not figure out how to center my contact form. 2) The contact form isn't working. Here is the PHP Code for the form: <?php $mailto = 'u0863932@hud.ac.uk'; $subject = "JK Online"; $formurl = "http://www.ciwan.info/contact.html"; $errorurl = "http://www.ciwan.info/error.html"; $thankyouurl = "http://www.ciwan.info/thankyou.html"; // -------------------- END OF CONFIGURABLE SECTION --------------- $name = $_POST['name'] ; $email = $_POST['email'] ; $subject = $_POST['subject'] ; $comments = $_POST['comments'] ; $spam=$_POST['spam'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (empty($name) || empty($email) || empty($subject) || empty($comments) || $spam!="56728") { header( "Location: $errorurl" ); exit ; } $name = strtok( $name, "\r\n" ); $email = strtok( $email, "\r\n" ); $subject = strtok( $subject, "\r\n" ); if (get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper ="---------- Crazyleafdesign.com message ----------\n\n" . "\nSent by : " . $name . "\nEmail : " . $email . "\nSubject : " . $subject . "\n\n\nMessage : " . $comments; mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\r\nReply-To: \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" ); header( "Location: $thankyouurl" ); exit ; ?> I would greatly appreciate any help. Thank You.
November 15, 200916 yr Make sure that there is nothing before the <?php in the file contact.php since that is causing the header issue. By the looks of it you have HTML before it for some bizarre reason as for the centering issue add margin: auto; to your #contact in your css
November 15, 200916 yr Author Two more things hehe 1) How do I make the border follow around the two legends. 2) Leave fields white when hover and clicked. Thanks
November 15, 200916 yr Yeah would be a good idea probs. I'm unsure with how to do it exactly sorry. I'm no css wizard
Create an account or sign in to comment