devinmaking
12-16-2011, 04:10 PM
Hi Guys i am a complete novice at ajax or javascript.
I have been studying php for a while now and i know that, i am now starting php oop and that going well but i have never done anything like this.
Anway i am creating a booking system which at the end of the process asks who supplied your voucher which they then select a supplier.
The issue i have is my client wants it so if groupon is selected then an input text box should appear so that the user can input a security code from groupon.
So basically it is
<select name="supplier" id="supplier">
<option value="">please select supplier</option>
<option value="Groupon">Groupon</option>
<option value="KGB Deals">KGB Deals</option>
<option value="Other">Other</option>
</select>
So if value="Groupon" then <input type="text" name="security" id="security" /> should appear next to it.
Could someone please help me as the page cant refresh as it will lose its data which would have taken the user about 10 minutes to fill out :(
Thanks in advance :)
I have been studying php for a while now and i know that, i am now starting php oop and that going well but i have never done anything like this.
Anway i am creating a booking system which at the end of the process asks who supplied your voucher which they then select a supplier.
The issue i have is my client wants it so if groupon is selected then an input text box should appear so that the user can input a security code from groupon.
So basically it is
<select name="supplier" id="supplier">
<option value="">please select supplier</option>
<option value="Groupon">Groupon</option>
<option value="KGB Deals">KGB Deals</option>
<option value="Other">Other</option>
</select>
So if value="Groupon" then <input type="text" name="security" id="security" /> should appear next to it.
Could someone please help me as the page cant refresh as it will lose its data which would have taken the user about 10 minutes to fill out :(
Thanks in advance :)