newbie to JS, help wanted

wxdqz

New Member
i have a small problem. Im using PHP for some page and i have a problem
with JavaScripts, cause im not good in JS. So the problem is that with
PHP i get data from MySql and put them into dropdown box, now i want
JS to first check if something is selected in dropdown box (by checking
selected value in dropdown box), if selected value is "" then error else
if value is number 1,2,3...and so on, then if value is larger then "" it
should display dialog box, warning: do u want to delete this record? OK, CANCEL,
if cancel do nothing, but if OK then redirect to some page using this URL
somepage.php?ID=2, now how to change that ID number into the selected one
from dropdown box? IF in dropdown box selected value is 3 how to get that
number into that url: .php?ID=3?

Does anybody have a script for all this, example or whatever
that works would be fine

thx
 
Back
Top