Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

HTM/PHP Contact Form


  • Please log in to reply
No replies to this topic

#1 franktechnology

franktechnology

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 30 May 2010 - 03:21 PM

www.franktechnology.com

On my message section I would like to to go down to the second line once the users writing approaches the end of the box. Instead, it stays on a single line continuously forever. How can I fix this?

index.htm

<font color="#ffffff" font face="Arial" font size="2">Frank Technology</font>
<br>
<br>
<br>
<form method="POST" action="mailer.php">
<font color="#ffffff" font face="Arial" font size="2">Name: (Required)</font><br>
<input type="text" name="name" size="25"><br>
<br>
<font color="#ffffff" font face="Arial" font size="2">Email: (Required)</font><br>
<input type="text" name="email" size="25"><br>
<br>
<font color="#ffffff" font face="Arial" font size="2">Message: (Required)</font><br>
<textarea rows="9" name="message" cols="50"></textarea>
<br>
<br>
<input type="submit" value="Submit" name="submit">
</form>
<body bgcolor="#003366">


mailer.php


<?php

if(isset($_POST['submit'])) {
$to = "john.frank@msn.com";
$subject = "Frank Technology";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];

$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";

echo "Thank you for contacting us. We will get back to you shortly.";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>



  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download