|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
automatic field inputs
I have some product pages, but after the user reads the content, there is a "click here for further information" button, as soon as teh user clicks on the button a pop up form appears, with the standard fields, Name, email, tel, and so on. However there is a field that called product that I want to be already filled in. This field will be dependant on the the product page that they're on.
this is what I've got so far, the button: <a href="/cgi-bin/form.cgi" onclick="NewWindow(this.href,'name','595','255','no');return false";> but I need to integrate this some how <input type="hidden" name="Product" value="Product A"> |
|
#2
|
|||
|
|||
|
Why dont you look at passing the parameter using the JavaScript method "location.search."
eg: somepage.html?thisproduct this a piece of code not used often but very useful when it is. |
|
#3
|
||||
|
||||
|
Could you not just include the product name in the href, like so:
Code:
<a href="/cgi-bin/form.cgi?product=productA" onclick="NewWindow(this.href,'name','595','255','no');return false";> |
|
#4
|
|||
|
|||
|
You could but i cant see why thuynh7 needs to use a cgi script just to create a web form as the only dynamic part of it (based on his note) would be the inclusion of the product type?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > automatic field inputs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|