modo Posted January 1, 2009 Share Posted January 1, 2009 Hello guys .. how r u .. i am new to php (since we didnt get much php at university) i am using it mainly to include the navigation menu, header, footer etc .. i am working a on a contact form .. people can send e-mails using a form even if it is not connected to a datbase using something like: <form action="http://www.is.nl/cgi-bin/mailto.exe" method="post"> instead of for example: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> i tried using the first one i mentioned .. but it doesnt validate .. does anyone know i can let it validate the form and use such a way to send e-mails without connecting to a database? thanks in advance Link to comment https://forums.phpfreaks.com/topic/139091-need-help-with-contact-form/ Share on other sites More sharing options...
premiso Posted January 1, 2009 Share Posted January 1, 2009 Why mailto.exe and it is under cgi? I am confused at how this is a PHP issue? If you want to know how to send an email in PHP... mail That is PHP Mail's manual and the function that sends mail, with examples of usage: http://us2.php.net/manual/en/function.mail.php Using that you do not need a DB to send emails, just a form that posts to that page and invokes that function. Link to comment https://forums.phpfreaks.com/topic/139091-need-help-with-contact-form/#findComment-727497 Share on other sites More sharing options...
modo Posted January 1, 2009 Author Share Posted January 1, 2009 thanks a lot i will check it out .. i hope thats solves my issue Link to comment https://forums.phpfreaks.com/topic/139091-need-help-with-contact-form/#findComment-727627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.