View Full Version : Any php ninjas know of a script to make this form work?

07-17-2007, 05:31 PM
Hi, I'm trying to put together a form with the following code from another website. If any of you gurus could spare the time to point me towards a script that I can embedded within the same page to get this to run, I would really appreciate it!

<form id="emailform" method="post" action="/contact.php">
<fieldset id="contact_form">
<legend>Please fill out the form completely.<br />You will be added to my mailing list unless you indicate otherwise.</legend>
<input type="hidden" name="sendnow" id="sendnow" />
<label for="fromname">Name</label>
<div><input name="fromname" type="text" id="fromname" size="40" value="" /></div><br />
<label for="from">Email Address</label>
<div><input name="from" type="text" id="from" size="40" value="" /></div><br />
<label for="what">Subject</label>
<div><input name="what" type="text" id="what" size="40" value="" /></div><br />
<label for="message">Message</label>
<div><textarea name="message" cols="50" rows="10" id="message"></textarea></div>
<a href="#" onclick="document.forms[0].sendnow.value='sent';document.forms[0].submit();return false;" id="contact_submit">Send</a>

Thanks in advance for all of your time and also for reading my post.