Log in

View Full Version : Email/Press Form



add
04-19-2006, 05:23 AM
I know this is very simple, but I deal in flash always and HTML is over my head. I need to have a press form with

Companys Name
Companys Address
Reps Name
Companys Phone
Contact Email

and have a submit button to send all this information to a specific email address?
Any help?

djr33
04-19-2006, 05:50 AM
the form's coding is really simple, then you need to figure out how to deal with the data... where it's sent.

<form action="NEXTPAGE*" method="post">
Company name: <input type="text" name="co_name">
<br>Companys Address: <input type="text" name="co_addr">
<br>Reps Name: <input type="text" name="rep_name">
<br>Companys Phone: <input type="text" name="co_phone">
<br>Contact Email: <input type="text" name="email">
<br><input type="send" value="Send!">
</form>


*Where it says NEXTPAGE, just put the url of the page that will interprate the form.
If you want to write it yourself, dive into php, but that's way above html, so if you don't like html, you'll hate php.
If you want, just find a free form mailer through google... lots of them, easy enough to setup... they just give you a link to use as the nextpage, and some instructions (like maybe a hidden address field that'll tell it to send to you... that type of thing)
Or, you can just make the "URL"/nextpage, be set to: "mailto:your@email.com" but that doesn't work for everyone (it uses the default mail client, and that can have issues... not the best route, but easiest to code)

There's a start for you.

JRS
04-19-2006, 06:05 AM
Check with your web host/server. Many come with a forms application already installed. In some cases, it's already enabled; in others, one click on a control panel and it's enabled. If one is not installed or easily enabled, talk to your support folk. In most cases, they will take care of you as forms are probably the most common request.

djr33
04-19-2006, 06:07 AM
Good point. That's easy.

In that case, it should just work like that, with my html above, then it will automatically do it... but I wouldn't know what page to use as "NEXTPAGE"... maybe leave it blank and it defaults (not sure though).

Twey
04-19-2006, 06:23 AM
If you use a blank action attribute, the data will be sent to the current page.
If the host sets something up, they'll supply a URI to a page to which one should post the data.

djr33
04-19-2006, 06:25 AM
Sure, that would make sense.
Just wasn't sure.
the only time I used a form processor from the host was at geocities way back when, and that just did it for me (but I don't think I touched the code... I was using their online editor), so felt like it was leaving that blank... but... yeah.