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?
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?
Putting the variable in the URL like that only makes it available as a query string variable, it won't fill in any forms.
index.php [where the link of 'Book me an alarm specialist']
-------------------------------------------------------
<html>
<body>
<p><a href="http://www.elitetradesmen.com/searchtrades.php?trade=Alarm%20Specialist">Book me an alarm specialist</a></p>
</body>
</html>
searchtrades.php [where the link redirect after clicking]
------------------------------------------------------------
<?php
Bookmarks