Irish SEO,  Marketing & Webmaster Discussion

 
Affiliates get Paid On Results, Click Here!

Help with Form

This is a discussion on Help with Form within the HTML Basics forums, part of the Coding Help category; Hi all, Stupid question but hey!! I'm new. I normally use a form creator to make forms but I would ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help > HTML Basics

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2008, 09:43 AM
Frontpage User
 
Join Date: Mar 2007
Posts: 19
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wildSaffy will become famous soon enough
Default Help with Form

Hi all,

Stupid question but hey!! I'm new. I normally use a form creator to make forms but I would like to post this form directly to the website. I have made up the form using my normal form maker - how do I change the HTML so that the form is posted to a specific email address? Any help appreciated. The HTML is as below:

<form name="contactForm" method="post" action="">
<input name="subject" type="hidden" id="subject" value="Enquiry About Fleet Services" />
<table width="30%" style="border: 0px solid #000000; margin: 0; padding: 0; background-color: #FFFFFF;"><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr bgcolor="#EFEFEF"><td><font color="#000000" size="2" face="Arial">Name of Company</font></td><td><font color="#000000" size="2" face="Arial"><input name="q[1]" type="text" value="" size="50" maxlength="" /></font></td></tr><tr bgcolor="#FFFFFF"><td><font color="#000000" size="2" face="Arial">Address</font></td><td><font color="#000000" size="2" face="Arial"><input name="q[2]" type="text" value="" size="50" maxlength="" /></font></td></tr><tr bgcolor="#EFEFEF"><td><font color="#000000" size="2" face="Arial"> E-mail Address:<font color="#FF0000"> *</font></font></td><td><input name="email" type="text" id="email" size="20" maxlength="100" /></td></tr><tr bgcolor="#FFFFFF"><td colspan="2"><font color="#000000" size="2" face="Arial">Name of Contact<font color="#FF0000"> *</font></font></td></tr><tr bgcolor="#FFFFFF"><td colspan="2"><font color="#000000" size="2" face="Arial"><input name="q[3]" type="text" value="" size="50" maxlength="" /></font></td></tr><tr bgcolor="#EFEFEF"><td><font color="#000000" size="2" face="Arial">Web Address</font></td><td><font color="#000000" size="2" face="Arial"><input name="q[5]" type="text" value="" size="40" maxlength="" /></font></td></tr><tr bgcolor="#FFFFFF"><td><font color="#000000" size="2" face="Arial">No. of Vehicles<font color="#FF0000"> *</font></font></td><td><font color="#000000" size="2" face="Arial"><input name="q[6]" type="text" value="" size="20" maxlength="" /></font></td></tr><tr><td colspan="2"><hr size="1" /></td></tr>
<tr><td colspan="2"><input name="submit" type="submit" value="Submit" /> </td></tr>
<tr><td><font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>*</b></font> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Required</font></td><td align="right"></td></tr>
</table></td></tr></table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-05-2008, 10:38 AM
paul's Avatar
ninja SEO
 
Join Date: Dec 2006
Location: .de
Posts: 1,118
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
paul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud ofpaul has much to be proud of
Default

you need something at the location action="" , that will process your form and email to yourself.
p
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-05-2008, 10:52 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,040
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

the action="" is not really necessary as the form will be posted to the same page automatically, but it is a good practise to have it set.

You need some server side code (php. asp) to process the order and email it.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-05-2008, 11:41 AM
Frontpage User
 
Join Date: Apr 2008
Location: Dublin
Posts: 15
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ringleader will become famous soon enough
Default

Code:
<form name="contactform" action="index.php?$session[sessionurl]do=messageme" method="post">

// Parts of the form.

</form>

if ($_POST['messageme'])
{
   // process and send message
}
The first part is your form displayed to the user to input things to.

When submitted, it goes to the 'messageme' part of your php code and executes what is in that part of the code (presumably emailing you the form contents).

Last edited by ringleader; 12-05-2008 at 11:44 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 12-05-2008, 12:19 PM
Frontpage User
 
Join Date: Mar 2007
Posts: 19
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wildSaffy will become famous soon enough
Thumbs up

Thanks guys - you have been very helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
form

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
form problems vijay HTML Basics 1 15-01-2008 10:42 AM
form sending without php Joseph Grogan Coding Help 5 05-09-2007 01:32 PM
Contact Form bucks Coding Help 10 07-02-2007 09:06 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 05:45 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0