Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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