Jump to content

AndyB

Staff Alumni
  • Posts

    5,465
  • Joined

  • Last visited

    Never

Posts posted by AndyB

  1. If there was a prize for the largest number of confused people in a thread, this one would be a front-runner.

     

    You start by asking how you get the source code - which can't be done unless you have server access to the domain where the script resides. Then you switch to wanting to see the generated html which can be done by 'view source' using a browser.

     

    Could you clarify just what you want to get and how you're going to use it if you could get it.

  2. Here's a start:

     

    First problem - you may have connected to the MySQL server but you haven't selected a database.

     

    Second problem - your first 'query' has no closing quote. You never do anything with that SELECT query, but that's beside the point.

     

    Third problem - you have zero error trapping on either the query that's never used or the UPDATE query. Either would have revealed the lack of database selection.

     

    Fourth problem - a minor one. Use [ code ] tags when posting code here.

  3. Oops, I didn't notice the first piece.

     

    The real code is:

     

    <select size="10" name="menu">
    <option value="">Select A State</option>
    <option value="New York">New York</option>
    <option value="California" select='selected'>California</option>
    <option value="Florida">Florida</option>
    <option value="Rhode Island">Rhode Island</option>
    </select>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.