PDA

Click to See Complete Forum and Search --> : Problems with Forms


KrispyKarim
08-25-2006, 05:23 PM
So I have a form outlined but I have no idea how to get it to e-mail me the submitted data.

Referances tell me to right click the form and choose "Actions" (in dreamweaver) however when I right click the form, there is NO actions option. Is there something I can put in the code that will do this action? the code is as follows:

<div align="left" class="_text" style="margin-left:25px; margin-top:7px"><img alt=""src="images/arrow.gif" hspace="0" vspace="0" border="0" style="margin-right:6px; margin-top:6px"><a href="#" class="l_text" onClick="document.getElementById('form').reset()">Reset</a><img alt=""src="images/arrow.gif" hspace="0" vspace="0" border="0" style="margin-right:6px; margin-top:6px; margin-left:35px"><a href="#" class="l_text" onClick="document.getElementById('form').submit()">Submit</a></div>

Any help would be much appreciated.

JPnyc
08-25-2006, 05:38 PM
Call me crazy but I don't see any form tags there.

chris_bcn
08-25-2006, 05:45 PM
I see dead people

tZ
08-25-2006, 05:48 PM
its not magic.

You need to process the form using a serverside language.

There are places online that provide the service.

Benjamin
08-28-2006, 12:38 PM
As tZ says, you need to use a server-side language to do this. If you have PHP installed on your server you can use the PHP mail() function. If not you can probably use a CGI script like sendmail.

JPnyc may be crazy but in fact you don't have a form element in there. You need to have somethin like this:

<form method="post" action="example.php">
[... form fields ...]
</form>

When you press submit the contents of the form will then be sent to 'example.php' for processing. This is where you would use the php function mail().