Jump to content

octa

Members
  • Posts

    12
  • Joined

  • Last visited

octa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. it was not hard to write a few letters, because I was helpful .. finally thanksss....
  2. <?php session_start(); if(!session_is_registered('myusername')){ header("location:main-login.php"); } ?> <html> <body> Login Successful </body> </html> i see error Deprecated: Function session_is_registered() is deprecated in C:\wampp\www\itvideohelps\login_success.php on line 4 Login Successful
  3. i'm not american , I know some English but using google translate , i don't understand expression , please write the code to attach
  4. yes , written this $mail_from=$_POST['customer_mail']; $header=$_POST['mail_from']; and continue this error Notice: Undefined index: mail_from in C:\wampp\www\itvideohelps\send_contact.php on line 15 how do I resolve this problemp?
  5. yes, but I have a problem, line 15 $header=$_POST['mail_from'];
  6. modified.. i see error Notice: Undefined index: mail_from in C:\wampp\www\itvideohelps\send_contact.php on line 15 We've recived your contact information <?php // Contact subject $subject =$_POST['subject'] ; // Details $message=$_POST['detail']; // Mail of sender $mail_from=$_POST['customer_mail']; // From $header=$_POST['mail_from']; THIS LINE 15 // Enter your email address $to ='octa@localhost'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "We've recived your contact information"; } else { echo "ERROR"; } ?>
  7. this is contact.php <table width="400" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td><strong>Contact Form </strong></td> </tr> </table> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1"> <tr> <td><form name="form1" method="post" action="send_contact.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td width="16%">Subject</td> <td width="2%">:</td> <td width="82%"><input name="subject" type="text" id="subject" size="50"></td> </tr> <tr> <td>Detail</td> <td>:</td> <td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td> </tr> <tr> <td>Name</td> <td>:</td> <td><input name="name" type="text" id="name" size="50"></td> </tr> <tr> <td>Email</td> <td>:</td> <td><input name="customer_mail" type="text" id="customer_mail" size="50"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td> </tr> </table> </form> </td> </tr> </table>
  8. Notice: Undefined variable: subject in C:\wampp\www\itvideohelps\send_contact.php on line 5 Notice: Undefined variable: detail in C:\wampp\www\itvideohelps\send_contact.php on line 8 Notice: Undefined variable: customer_mail in C:\wampp\www\itvideohelps\send_contact.php on line 12 Notice: Undefined variable: name in C:\wampp\www\itvideohelps\send_contact.php on line 15 We've recived your contact information on this line script <html> <?php // Contact subject $subject ="$subject"; // Details $message="$detail"; // Mail of sender $mail_from="$customer_mail"; // From $header="from: $name <$mail_from>"; // Enter your email address $to ='octa@localhost'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "We've recived your contact information"; } else { echo "ERROR"; } ?> </html> using localhost , i have install ArGoSoft mail server , and I did email settings outlook expresss help , thanks
×
×
  • 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.