![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I've got a PayPal form on a page I'm designing, where a user can select from two dropdown list boxes before clicking the usual PayPal 'Buy Now' button. The options in the dropdown boxes are then passed to PayPal (I'm sure you all know how it works!) I want to perform a very simple form validation routine on the two dropdown lists BEFORE sending the user off to PayPal to ensure they've actually selected something from them. I've made the top item in the lists say 'SELECT' by default and want to check to see if either boxes' selected option is equal to this. If so I want to pop up the usual box asking them to make a selection. I'm sure you all know what I'm trying to achieve! The html for the Form itself is: form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="Order" target="paypal" id="Order" title="Order" |
|
It's the standard code that PayPal provide for their members. The thing is I've tried inserting an OnSubmit Javascript call to this |
|
line so that the Javascript is run, but this doesn't seem to happen. All that does happen is that the standard PayPal shopping cart screen pops up with my item added - with both options blank! Is it because the form's 'action' is to go to an external site that's the reason the Javascript call doesn't seem to be working? Or is there something I'm missing? |
![]() |
| Thread Tools | |
| Display Modes | |
| |