Jump to content

zjp

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zjp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. first,thank you for your help. your code maybe use mail() ,but i want use socket,can you give me another one?
  2. who can give me the code? thanks
  3. <?php         if ( $REQUEST_METHOD == "POST" ) {           $realname = strip_tags($realname);         $email = strip_tags($email);         $feedback = strip_tags($feedback);           $sendto = "zjp19831102@163.com";         $subject = "order request";         $message = "$realname, $email\n\n$feedback";           mail($sendto, $subject, $message);               }         ?>     <?php     if ($REQUEST_METHOD=="POST") {         echo("<p><b>Thank you for your feedback. The following message was sent:</b></p>\n");         echo("<blockquote><pre>\n");         echo("$message");         echo("</pre></blockquote>"); ?> <meta http-equiv="refresh" content="5">   <?     }     else { ?> <script language="javascript">   function DoSubmit ()   {     if (document.form.realname.value == "") {       alert ("You forgot to enter your name.");       document.form.realname.focus ();       return "";     }     if (document.form.email.value == "") {       alert ("You forgot to enter your email.");       document.form.email.focus ();       return "";     }     if (document.form.reedback.value == "") {       alert ("You forgot to enter your feedback. ");       document.form.reedback.focus ();       return "";     }     document.form.submit ();   } </script>   <form action="<?php echo("$script_name"); ?>" METHOD="POST" name="form">   <table cellpadding="4" cellspacing="0" border="0">     <tr><td><b>Name: </b></td><td><input type="text" name="realname" size="25"></td></tr>     <tr><td><b>Email:</b></td><td><input type="text" name="email" size="25"></td></tr>     <tr><td colspan=2><b>Feedback:</b><br />         <textarea name="feedback" rows="12" cols="45" wrap="physical"></textarea>     </td></tr>     <tr><td colspan="2" align="center"><input type="submit" onclick="DoSubmit ()" value="send"></td></tr>   </table>   </form> <?php } ?> ??? ??? ??? ??? ??? This code can't send the mail ,who can tell me where i'm wrong ! Thanks a lot!!!!
×
×
  • 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.