Forum Moderators: open

Message Too Old, No Replies

Script for forms. Can you help

         

flanok

11:16 pm on Oct 18, 2006 (gmt 0)

10+ Year Member



Hi,
I have just bought a template for the basis of a website that I am working on.
It comes with a form that allows visitors to contact me.

However i don't know the script that will send the form data to a web address.
Can anyone help?
Thanks
Mark

Here is the code for the form

<form id="form1" action="" enctype="multipart/form-data" name="form1">
Your Name:<br>
<input type="text" class="input1"><br>
<br style="line-height:8px;">
Your Phone:<br>
<input type="text" class="input1"><br>
<br style="line-height:8px;">
Message:<br>
<textarea rows="30" cols="40"></textarea><br>
<br style="line-height:7px;">
<img alt="" src="images/spacer.gif" width="100" height="1"><a href="#" onclick="document.getElementById('form1').reset()">Reset</a><img alt="" src="images/spacer.gif" width="30" height="1"><a href="#" onclick="document.getElementById('form1').submit()">Submit</a><br>
</form>

tedster

11:51 pm on Oct 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This goes beyond "Browsers and HTML". You will need to install a server-side script -- and then change the "action" attribute of the <form> element to send the data collected to whatever form handling you choose to install on your server.

Free scripts are available all over the web for collecting basic form information like this --any search eninge will reveal lots of choices. However, you should change the name of the file involved to something uncommon.