Design Directory Discussion Forum Design Job Board Add Your Site Post a Message Post a Job / Gig

HomeDevelopers → Re: Form 2 Email in Dreamweaver...

I'm new to the web design game and have little knowledge of any coding, i'm more of a design man. I'm having trouble getting my form to email working in dreamweaver. i host with heart internet and they have installed a CGI script onto my server but i can't get it to work.
is my code correct?

</form></td>
</tr>
<tr>
<td><div align="right">
<input type="hidden" name="recipient" value="info@effortlesscash.co.uk" />
<input type="hidden" name="subject" value="Quote Form" />
<input type="hidden" name="redirect" value="http://www.effortlesscash.co.uk/thankyou.html" />
name:<br/>
</div></td>
<td><input type="text" size="30" name="realname" /></td>
</tr>
<tr>
<td><div align="right">email: </div></td>
<td><input type="text" size="30" name="email" /></td>
</tr>
<tr>
<td><div align="right">phone: </div></td>
<td><input type="text" size="30" name="phone" /></td>
</tr>
<tr>
<td><div align="right">category:
<br/>
</div></td>
<td><select name="category" id="category">
<option value="home electronics">home electronics</option>
<option value="video games &amp; consoles">video games &amp; consoles</option>
<option value="mobile phones">mobile phones</option>
<option value="cameras">cameras</option>
<option value="gadgets">gadgets</option>
<option value="studio &amp; dj equipment">studio &amp; dj equipment</option>
<option value="musical instruments">musical instruments</option>
<option value="car electronics">car electronics</option>
<option value="gps">gps</option>
<option value="watches">watches</option>
<option value="sports equipment">sports equipment</option>
<option value="cb ham &amp; shortwave">cb ham &amp; shortwave</option>
<option value="radio">radio</option>
<option value="antiques &amp; collectables">antiques &amp; collectables</option>
<option value="CDs &amp; DVDs">CDs &amp; DVDs</option>
<option value="HD &amp; bluray">HD &amp; bluray</option>
<option value="entertainment memorabilia">entertainment memorabilia</option>
</select></td>
</tr>
<tr>
<td><div align="right">item:
<br/>
</div></td>
<td><input type="text" size="30" name="item" /></td>
</tr>
<tr>
<td><div align="right">description:
<br/>
</div></td>
<td><textarea name="description2" id="description" cols="30" rows="5"></textarea></td>
</tr>
<tr>
<td><div align="right">attach photo:
<br/>
</div></td>
<td><input type="file" name="photo" id="photo" /></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input value="send" type="submit" />
</div></td>

the website address http://www.effortlesscash.co.uk

thank you

gilestalbot
it`s a html.. give me a full code..))
it`s starts.. <table>..........</table
Visit My Website | Flash design | Web design| Logos and more...
Your pasted code started with </form> which is the closing tag of a form...

Should start with <form>

But in addition to that, the form must have an action attribute to tell it what to do when the user hits submit

<form action="/cgi-bin/formmail.pl">

That's a common one for small sites, and by your hidden <input> tags, it looks like what you're trying to use.

Then the closing </form> tag would come at the bottom of the HTML somewhere.

If you don't have a CGI form mailer script or other server-side code to do the job, you can use the poor man's method of putting your email in the action attribute:

<form action="mailto:info@effortlesscash.co.uk">

It won't be particularly pretty when you get it, but it will get to you.
Visit My Website | ---- ---