User Profile

Collapse

Profile Sidebar

Collapse
PeekAtU
PeekAtU
Last Activity: Nov 25 '12, 08:24 PM
Joined: Nov 13 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • PeekAtU
    replied to How to store a select menu value in a variable
    in PHP
    Thank you. Im sure that should make sense to someone more experienced but I am still not quite clear. Below is another portion of the code that monitors the selection in #msg-room. The portion of code does work because I am able to change rooms successfully. Im just having the toughest time trying to pass the selection on as a variable. I hope Im making sense. The site was (partially) built for me by a developer I hired and has now vanished so I...
    See more | Go to post

    Leave a comment:


  • PeekAtU
    replied to How to store a select menu value in a variable
    in PHP
    The select box has an id=msg-room. How would I display the currently selected value as another page's heading?
    See more | Go to post

    Leave a comment:


  • PeekAtU
    started a topic How to store a select menu value in a variable
    in PHP

    How to store a select menu value in a variable

    Hello I am having an issue assigning a variable to a select box selection so that i can feed the variable back into future queries. Please see code below:

    Code:
    <select name="room" id="msg-room">
                            <?php
                            $query = mysql_query("SELECT * FROM rooms ORDER BY ROOM asc");
                            while($data = mysql_fetch_assoc($query)) {
    ...
    See more | Go to post
    Last edited by Rabbit; Nov 13 '12, 06:34 AM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...