Jump to content

need help with contact form


modo

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.