Jump to content

mail form% need help


honeyboy_20

Recommended Posts

[code]i want to add some feature to this script  such as(1) ensure that data is sent correct to desire mail friend
(2) if user enter invaild mail display message to help me if there is worng
(3)when i test script no  message is sent to me

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-size: 15px;
font-weight: bold;
}
.style3 {
color: #000066;
font-size: 12px;
}
-->
</style>
</head>

<body>
<?php
$name=stripslashes($name);
$to= stripslashes($to);
$from= stripslashes($from);
$subject = stripslashes($subject);
$message= stripslashes($message);
$mail=mail($to,$subject,$message,"From: $name <$email>");


?>
<div id="Layer1" style="position:absolute; left:120px; top:45px; width:391px; height:310px; z-index:1; background-color: #990000; layer-background-color: #990000; border: 1px none #000000;">
  <div align="center" class="style1">
    <p>my test form </p>
    <form name="form1" method="post" action="">
      <p> <pre>
<tt>  to </tt><input type="text" name="to"></pre>
      </p>
      <p>
<pre>  from <input type="text" name="from"> </pre>
</p>
      <p><pre>
subject<input type="text" name="subject"> </pre>
</p>
      <p>
        <center><b>your message <b></center>
        <br>
        <textarea name="message" cols="30" rows="5"></textarea>
      </em>      </p>
      <input type=submit value=submit>
      <p>&nbsp;</p>
    </form>
    <p>&nbsp;</p>
  </div>
</div>
</body>
</html>[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.