Hey, I have this contact form and I'm trying to modify it. I really need some help though, I'd appreciate it <div class='borderwrap'> <div class='header'>Contact Us</div> <div class='row'> <?php if (!isset($_POST['submit'])) { ?> <form name="mail" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> <label for="subject">Subject</label> <input name="subject" type="text" id="subject" size="50" /><br /> <label for="name">Name</label> <input name="name" type="text" id="name" size="50" /><br /> <label for="mail">Email</label> <input name="mail" type="text" id="mail" size="50" /><br /> <label for="contacttext">Content</label> <textarea name="contacttext" id="contacttext"></textarea><br /> <input class="button" type="submit" name="submit" value="Submit" /> <input class="button" type="reset" name="reset" value="Reset" /> </form> <?php } else { $postname = strip_tags($_POST['name']); $postmail = strip_tags($_POST['mail']); $postcomm = strip_tags($_POST['content']); $to = "mythicaldreams@googlemail.com"; $subject = "Arelity Contact Form Response"; $headers = "From: Arelity <notification@arelity.net>\n"; $message = "Message from arelity.net Contact Form \r\n"; $message .= "It's contents are as follows:.\n\n"; $message .= "Name: ".$postname."\n\n"; $message .= "Email: ".$postmail."\n\n"; $message .= "Message:\n\n".$postcomm."\n\n"; $message .= "Thank You.\n\n"; $mail_sent = @mail( $to, $subject, $message, $headers ); echo 'Congratulations, your email has successfully been sent. Please expect a response in the next few business days. Thank you for contact Arelity! <br /> <br />'; } ?> </div></div> Code (markup): I basically need it to look like this. Just one option. Help is appreciated, I need some help on how to change how it looks with the styles sheet too please.
Try this out. It should work fine and I added a couple of comments for your use. <div class='borderwrap'> <div class='header'>Any Title you want or leave blank</div> <div class='row'> <?php if (!isset($_POST['submit'])) { ?> <form name="mail" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> <label for="name">Diva's Name</label> <input name="name" type="text" id="name" size="50" /><br /> <input class="button" type="submit" name="submit" value="Submit" /> <input class="button" type="reset" name="reset" value="Reset" /> </form> <?php } else { $postname = strip_tags($_POST['name']); $postmail = strip_tags($_POST['mail']); $postcomm = strip_tags($_POST['content']); $to = "mythicaldreams@googlemail.com"; $subject = "Arelity Contact Form Response"; $headers = "From: Arelity <notification@arelity.net>\n"; $message = "Message from arelity.net Contact Form \r\n"; $message .= "It's contents are as follows:.\n\n"; $message .= "Name: ".$postname."\n\n"; $message .= "Email: ".$postmail."\n\n"; $message .= "Message:\n\n".$postcomm."\n\n"; $message .= "Thank You.\n\n"; $mail_sent = @mail( $to, $subject, $message, $headers ); // Any text in the two lines below can be modified. The opening and closing ' MUST remain echo 'Congratulations, your email has successfully been sent. Please expect a response in the next few business days. Thank you for contact Arelity! <br /> <br />'; } ?> </div></div> PHP: