Results 1 to 2 of 2

Thread: SQL Dynamic Menu in DW CS3

  1. #1
    Join Date
    Jan 2009
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default SQL Dynamic Menu in DW CS3

    I have created a dynamic menu in Dreamweaver CS3 and linked it to a database using MySQL/PHP. I wanted the default value to be blank, so I added a static option with a value of 0 and a blank label. Now, however, if the user doesn't select a value the blank field is submitted to the database.

    How do I make the menu so the default blank selection must be changed in order to submit the form?

    Thank you

  2. #2
    Join Date
    Sep 2008
    Posts
    56
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Default Re:- SQL Dynamic Menu in DW CS3

    Hi,

    You can do this using JavaScript, on the submit of the form call a JavaScript function in which check the selected value of the menu, if its 0 then show a error alert box to the user and do not proceed to submission of the form otherwise proceed to the submission of the form.

    Hope this helps!

    Cheers,

    ~Maneet Puri

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •