Forum Moderators: open

Message Too Old, No Replies

form problem

         

Blelisa

3:22 pm on May 5, 2004 (gmt 0)

10+ Year Member



Hi,
I have 14 different contact forms for my site, They all come in too my email box when sumbitted and then I hand them out to necessary engineers. Problem I am having is I was wondering if there is any way in the html I could have the form put something in the text of the email or in the subject bar of the email indicating what page or form the info was sent from.
I wrote my forms in HTML using the post action. Any help is appreciated!

volatilegx

3:26 pm on May 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using a cgi script to process the forms?

If so, you could have the CGI script embed the HTTP_REFERER header into the email, which would indicate the name of the webpage.

Blelisa

3:34 pm on May 5, 2004 (gmt 0)

10+ Year Member



I am not sure what .cgi is HEre is the code of my form
<form method="post" action="mailto:lblendowski@hemisphere.net">
<div id="columnleft">Contact Name:<br />
<input name="contactname" type="text" size="40"/><br />
Company Name:<br />
<input name="companyname" type="text" size="40"/><br />
Street Address:<br />
<input name="streetaddress" type="text" size="40"/><br />
City, State, Zip:<br />
<input name="citystatezip" type="text" size="40"/><br />
Telephone Number:<br />
<input type="text" name="telephone"/><br />
Fax Number:<br />
<input type="text" name="fax"/><br />
Email Address<br />
<input name="email" type="text" size="40"/><br />
</div>
<div id="columnright">Please Check All That Apply:<br />
<input type="radio" name="Replace Current Phone System" value="radiobutton"/>I am upgrading my existing Broadband Connection<br />
<input type="radio" name="New Sys for Move" value="radiobutton"/>I am providing backup to my existing connection<br />
<input type="radio" name="upgradecurrentsys" value="radiobutton"/>I need a new connection for my new office<br />
<input type="radio" name="upgradecurrentsys" value="radiobutton"/>I need a stand-alone office connection<br />
<br />
<br />
<p>My Specific Needs Are:<br />
<input type="checkbox" name="generalemailaccess" value="checkbox"/>General Web/Email Access<br />
<input type="checkbox" name="datatransfer" value="checkbox"/>Data Transfer between our Offices<br />
<input type="checkbox" name="communicatevendors" value="checkbox"/>Communicate to our vendors electronically<br />
<input type="checkbox" name="multiusers" value="checkbox"/>Simultaneous multi user accessibility<br />
<input type="checkbox" name="videoordatatransfer" value="checkbox"/>Video and/or Data Transfer</p>
</div><br /><br /><br /><br /><br /><br />
<p>Additional Comments:<br />
<textarea name="addcomments" cols="90" rows="8"></textarea><br />
<input type="submit" name="Submit" value="Submit"/></p>
<input type=hidden name="subject" value="Broadband Contact Form">
</form>

Also is there a way to get the form to come in the email without it being in one long string?
Thanks

Dingbat

10:19 pm on May 5, 2004 (gmt 0)



cgi.http_referrer should be available to you,but you have to know how to reference it so your web server makes the substitution.

Alternatively, you could manually add a subject to each link:

<form method="post" action="mailto:lblendowski@hemisphere.net?subject=Page1">

Or even use a <input type="hidden"...> if you want it in the body of your email