Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do i link a field in a form to previous page?
Old 06-05-2009, 06:12 PM How do i link a field in a form to previous page?
Average Talker

Posts: 15
Trades: 0
Is there a way so that when someone clicks on the 'book me an alarm specialist' link it will automatically fill in the trade section of the form on the page it links to. I have about 20 pages linking to the form page all coming from a different trade.

I have added this bit of code to the initial page :

<a href="http://www.elitetradesmen.com/searchtrades.php?trade=Alarm%20Specialist">Book me an alarm specialist</a>

and this bit to the form page:

<a href="http://www.elitetradesmen.com/searchtrades.php?trade=Alarm%20Specialist">Book me an alarm specialist</a>

I've clearly done something wrong as it should come up with alarm specialist in the form box but its showing some of the code. What have i done wrong?

http://www.elitetradesmen.com/alarmspecialists.html
speed1972 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-05-2009, 07:10 PM Re: How do i link a field in a form to previous page?
Junior Talker

Posts: 3
Name: Martin Hansen Lennox
Location: Nottingham, UK
Trades: 0
Can you paste the forms input code as it comes up in DreamWeaver / FPage?
__________________
WebFertile Nottingham - Web, Design + Business Solutions for Healthy Growth.


Please login or register to view this content. Registration is FREE
WebFertile is offline
Reply With Quote
View Public Profile Visit WebFertile's homepage!
 
Old 06-05-2009, 07:25 PM Re: How do i link a field in a form to previous page?
Average Talker

Posts: 15
Trades: 0
I'm new to all this so not sure which bit you need so i'll post the code for the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Elite Tradesmen of Southport &amp; surrounding areas</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

</head>
<body>
<div id="wrapper">
<h1>Elite tradesmen</h1>
<div id="nav">
<a href="index.html">Home</a>
<a href="areas.html">Areas</a>
<a href="trades.html">Trades</a>
<a href="quotes.html">Quotes</a>
<a href="contact.html">Contact Us</a>
</div>
<div id="body">
<div id="body-top">
<div id="body-top-2"></div>
<div id="body-bot">
<div id="welcome">
<img src="images/pic_1.jpg" width="231" height="301" alt="Pic 1" />
<h2>Submit your job</h2>
<p>We will always post all received jobs on the website within 24 hours. If you would like someone to visit you in person to take details of the work please use the form on this page.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;<img src="images/logo12.jpg" alt="" width="178" height="138" /></p>
</div>
<div id="content">
<img src="images/pic_2.jpg" width="109" height="108" alt="Pic 2" class="left" />
<h2>Submit your work here</h2>
<p>To request quotes from our tradesmen simply fill in the form below.</p>
<p>Your job will then be posted on our site and alerts sent to all tradesmen in the service concerned.</p>
<p>Quotes will be sent to you as and when we receive them. You will be sent portfolio information for each tradesman with every quote received.</p>
<p>When you have decided which tradesmen to use we will draw up a plan of works which will detail work to be completed, agreed amount, date to commence and complete work. This plan of works will be signed by both customer and tradesman. At this time 10% of the total quote will be paid to Elite Tradesmen by the customer.</p>
<p>When the work is completed the customer will sign the plan of work to confirm that the work has been completed to your satisfaction. Once the work has been signed off payment will be made in full from the customer to the tradesman.</p>
<p>At this point we ask that you leave us some feedback in relation to the service you received both from us and your tradesman.</p>
<p>&nbsp;</p>
<p>To submit your job please complete this form:</p>
<p>&nbsp;</p>
<p>Name:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<elephone>
Telephone:<br />
<input type="text" name="FirstName" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="LastName" />
<br />
</p>
<p>Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prefered contact method:<br />
<input type="text" name="Tel" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; &nbsp;&nbsp;&nbsp;
<input type="text" name="EmailFrom" />
<br />
</p>
<p>Address:<br />
<textarea name="Basicjobdetails" cols="35" rows="5"></textarea>
</p>
<p>Trade required:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;<br />
<input type="text" name="FirstName2" />
&nbsp;<br />
</p>
<p>Preferred start date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Preferr ed completion date:<br />
<input type="text" name="Tel2" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; &nbsp;&nbsp;&nbsp;
<input type="text" name="EmailFrom2" />
<br />
</p>
<p>Details of the work you would like completed :<br />
<textarea name="Basicjobdetails2" cols="35" rows="5"></textarea>
</p>
<p>
<input type="submit" name="submit2" value="Submit" />
</p>
<div class="fineline"></div>
<p>&nbsp; </p>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div id="footer">
<p>Copyright © 2009, Elite Tradesmen. All rights reserved</p>
</div>
</div>
</body>
</html>
speed1972 is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:45 AM Re: How do i link a field in a form to previous page?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Is there a way so that when someone clicks on the 'book me an alarm specialist' link it will automatically fill in the trade section of the form on the page it links to.
Yes, but you will need some javascript or server-side form handling in order to do it. That means a little PHP if your host provides it. You cannot do it with just HTML.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-07-2009, 11:52 AM Re: How do i link a field in a form to previous page?
Average Talker

Posts: 15
Trades: 0
I have managed to do it now with some javascript.
speed1972 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do i link a field in a form to previous page?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26215 seconds with 12 queries