No doubt this is something I am doing wrong. I have reused code from elsewhere (an example by @snowshoe) so I may have got into a mess! Any help or pointers gratefully received! Apologies if this is something obvious that I have missed. I have looked through other answers but I just cannot untangle this. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <SCRIPT type=text/javascript> <!-- var pantoAdult = new Array ( // pantoAdult array "Thursday 18th 7.30pm", "Friday 19th 7.30pm", "Saturday 20th 3pm", "Saturday 20th 7.30pm" ); var pantoChild = new Array ( // pantoChild array "Thursday 18th 7.30pm", "Friday 19th 7.30pm", "Saturday 20th 3pm", "Saturday 20th 7.30pm" ); var supperAdult = new Array ( // supperAdult array "Friday 19th 6pm", "Saturday 20th 6pm" ); var supperChild = new Array ( // supperChild array "Friday 19th 6pm", "Saturday 20th 6pm" ); function Mod1 (obj) { // write new data inbto select var i,pos; obj.form.os0.options.length = 0; // clear the old values pos = obj.selectedIndex; // item selected if (pos == 1) { // pantoAdult for (i=0; i<pantoAdult.length; i++) { var opt = new Option (pantoAdult[i], pantoAdult[i]); obj.form.os0.options[i] = opt; } } if (pos == 2) { // pantoChild for (i=0; i<pantoChild.length; i++) { var opt = new Option (pantoChild[i], pantoChild[i]); obj.form.os0.options[i] = opt; } } if (pos == 3) { // supperAdult for (i=0; i<supperAdult.length; i++) { var opt = new Option (supperAdult[i], supperAdult[i]); obj.form.os0.options[i] = opt; } } if (pos == 4) { // supperChild for (i=0; i<supperChild.length; i++) { var opt = new Option (supperChild[i], supperChild[i]); obj.form.os0.options[i] = opt; } } } //--> </SCRIPT> <!-- End of Script --> </head> <body> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" > <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="X2UPNB7ASGWKJ"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="item_name" value="Sleeping Beauty - WOPA 2018"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="cn" value="Add special instructions to the seller:"> <input type="hidden" name="no_shipping" value="2"> <input type="hidden" name="currency_code" value="GBP"> <input type="hidden" name="add" value="1"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted"> <SELECT onchange="Mod1 (this);"> <OPTION selected>- Please Select -</OPTION> <OPTION>Adult - Panto only £7.50 GBP</OPTION> <OPTION>Child - Panto only £5.00 GBP</OPTION> <OPTION>Adult - Supper & Panto £21.50</OPTION> <OPTION>Child - Supper & Panto £11.00</OPTION> </SELECT> <BR><BR> <INPUT type="hidden" value="Ticket" name="on0"> <SELECT name=os0> <OPTION selected>------</OPTION> </SELECT> <BR><BR> Quantity: <INPUT size="3" value="1" name="quantity"> <br /> <input type="hidden" name="currency_code" value="GBP"> <input type="image" src="http://www.wopa.me/images/button.png" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form> </body> </html>
... View more