Results 1 to 4 of 4

Thread: dropdown boxes

  1. #1
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default dropdown boxes

    Ok guys im coming into a problem. I am making an admin page for my small lil game. On this page i would like for the staff (Admins Only) can goto this page and "drop" the property. I would like to have 2 Drop Down Boxes with a submit button.

    Box1= Properties Name
    Box2= Properties Location
    Submit= Drop Property

    Basically, one admin would goto the page. he click Box1 and choose the properties name, then click box2 and choose the location of the property. Then he would click "Drop". Then this would take the "properties owner" and change it to "No Owner"

    Is this possible?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't understand this. Why would adding a name and location make something else no owner?
    Is that a default value?
    This would be something you'd do in interpreting the script, or adding it to your database, not something based on immediate input-- that seems like the default.

    If you really want, you could always use:
    <input type="submit" value="No Owner" name="properties owner">
    But that would just be weird.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    This is the layout i have pictured in my head:

    [properties] [location] [drop]

    SO The Admin would choose a business from "properties" then choose a location from "locations" then hit the "drop" button. (like so)

    [Slots] [England] [Drop]

    That combo of selections from the dropdown boxes would tell the server to:
    "goto the slots table, where england is and put "No Owner"

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Right. You submit data, the PHP submits a query to MySQL or other database, and it includes default values.
    Do you not know how to get the values submitted by the form?
    How to run a MySQL query?
    How to include default values? (For this, just type in the default as a string in the mysql query, rather than using a variable.)

    As far as I can tell this is just standard work with php/mysql, so any intro tutorial on the subjects above should be helpful.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •