I am quite an amature web disigner by anyones standards here, I just do the one for my business. I’m making the changes to keep the email invisible from the spammers and many web visitors use web based email and I think I’m missing business from individuals that don’t want the hassle with my old config. My question is probably simple for some of you but I’ve not been able to figure it out on my own so far.
I have a list of parts for sale and I would like to have the user be able to click on the part number, open a form window which then allows them to fill in name, email and questions. I already have the parent page and the form window, I just need to figure out the code to populate the part info automatically for the user. Here is the code I currently have.
[B]Parent
<a href=”parts_inquiry.html” onclick=”window.open(this.href, ‘_blank’, ‘width=625,height=450,left=275,top=100,resizable=no,status=no,toolbar=no,menubar=no,location=no’); return false;”><b>1969 fender part CV-1234</b></a>
[B]Form code
<form action=”
<input type=”hidden” name=”recipient” value=”
<input type=”hidden” name=”subject” value=”Parts Inquiry” />
<input type=”hidden” name=”redirect” value=”../thank_you6.html” />
<input type=”hidden” name=”required” value=”realname, email” />
<input type=”hidden” name=”env_report” value=”REMOTE_HOST, HTTP_USER_AGENT, REMOTE_USER, REMOTE_ADDR ” />
<div align=”center”><table width=”90%” border=”0″>
<tr><td align=”center”><p><font size=”4″><b>Parts Inquiry</b></font></p>
<p align=”center”><font size=”2″ color=”#FF0000″>"*" Indicates required field.</font></p>
<p><font>Fill out the form below to find out more about this this part.</font></p>
</td></tr></table></div>
<div align=”center”><table width=”50%” border=”2″ bgcolor=”#99CCFF”>
<tr><td align=”right” width=”50%”><font color=”#FF0000″>*</font>Your Name : </td>
<td align=”left” width=”50%”><input type=”text” size=”35″ maxlength=”256″ name=”realname” /></td></tr>
<tr><td align=”right” width=”50%”><font color=”#FF0000″>
<td align=”left” width=”50%”><input type=”text” size=”35″ maxlength=”256″ name=”email” /></td></tr>
<tr><td align=”right” width=”50%”>Phone Number : </td>
<td align=”left” width=”50%”><input type=”text” size=”14″ maxlength=”256″ name=”Phone” /></td></tr>
<tr><th colspan=”2″>Please type your question(s) in the space below:
<textarea name=”Question(s)” rows=”5″ cols=”70″></textarea></th></tr></table></div><br />
<div align=”center”><table width=”90%” border=”0″>
<tr><td align=”center”>
<input type=”submit” value=”Submit Form” /> <input type=”reset” value=”Clear Form” />
</td></tr></table></div></form>
I know I need to somehow reference the part information as a variable on the parent page and it will have to direct it to fill in the subject field in the form page. I don’t know if jave is the best way or if browsers block typicalle block it. Any assistance would be appreciated. JB