PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
} else { $msg = "You need to have a message!" };
} else { $msg = "You forgot the subject field" };
} else { $msg = "You must fill in the email field" };
// missing ;'s
} else { $msg = "You need to have a message!"; };
} else { $msg = "You forgot the subject field"; };
} else { $msg = "You must fill in the email field"; };
} else { $msg = "You need to have a message!" };
} else { $msg = "You forgot the subject field" };
} else { $msg = "You must fill in the email field" };
// missing ;'s
} else { $msg = "You need to have a message!"; };
} else { $msg = "You forgot the subject field"; };
} else { $msg = "You must fill in the email field"; };
a question; how do u set up the SMPT settings? I wanna know if its easy, becuase im not sure what it is or if the contact form will work when i upload it onto my webhost.
Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function.
smtp_port int
Used under Windows only: Number of the port to connect to the server specified with the SMTP setting when sending mail with mail(); defaults to 25. Only available since PHP 4.3.0.
sendmail_from string
Which "From:" mail address should be used in mail sent from PHP under Windows.
sendmail_path string
Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail. configure does an honest attempt of locating this one for you and set a default, but if it fails, you can set it here.
Systems not using sendmail should set this directive to the sendmail wrapper/replacement their mail system offers, if any. For example, Qmail users can normally set it to /var/qmail/bin/sendmail or /var/qmail/bin/qmail-inject.
Där ser du vilka php.ini settings som krävs för att det ska funka. Men en bra webhost behöver inga ändringar, eftersom detta fixas när de installerar PHP.
Short in english: shouldn't be needed for a good host.
have you looked at self processing forms? not all browsers are kind enought o remmeber and repopulate data. a self processing form can allow you to give them the data they submitted AND the error message.