Jump to content

learner1901

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by learner1901

  1. I agree there might be a configuration issue, but wondering what to check. I am using Dreamweaver and XMPP for local host. I can access php.ini file. Do I need to make any changes here? Also I have not yet set ODBC connection - can this be the reason? Please suggest !!
  2. Hi Experts, When I try to send email from my web page (using PHP) I get the following error in my code. I am using Dreamweaver CS3. My php code : <?php $name = $_POST['name']; $address = $_POST['address']; $email = $_POST['email']; $message = $_POST['message']; $message1 = " Somaone has contacted through the website . \n Name : $name \n Address : $address \n Email : $email \n Message : $massage \n " ; $from = " From : $email "; mail('mail1@yahoo.com','Contact from our website', $message1, $from); ?> Error : Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\sendmail.php on line 17 [ line 17 -> mail('mail1@yahoo.com','Contact from our website', $message1, $from); ] Thanks in advance for all your suggestions.
  3. I have a problem, when I am trying to create my own web page using Dreamweaver (PHP) I have created a HTML page where data can be entered by user. After clicking “submit” button, next page is not able to show/ fetch the data entered in the previous page. As a web server I am using XAMPP .Code used: Page -1 Name : “ Text field “ (name) ………. …… Submit (form action “ show.php”) Page 2 ( show.php) <?php $name = $_POST['name']; $address = $_POST['address']; $message = $_POST['message']; ?> <html> <head> <p>Name : <?php echo $name ; ?></p> <p>Address : <?php echo $address ; ?></p> <p>Message : <?php echo $message ; ?></p> </html> </head> Please suggest where I am going wrong.. It seems I am missing some basic stuff here. Thanks in advance !!!
×
×
  • 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.