Jump to content

neif_mamdouh

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

neif_mamdouh's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I got that part as well. No lets say that I have a username called banana with a value of 1 and another, apple with a value of 2. Now how to pass "2" to another page when the user selects apple? I need the code for the button. what is the variable code to insert 2 (when apple is selected) or 1 (when banana is selected). I hope I made myself clear enough. Cheers/
  2. In the second page I have no problem. for example in the first page if I put the action for the form to: access.php?user_id=13 <--- 13 being a constant number. i will have 13 in the second page. What i need is to make this 13 dynamic, depending on what the user chooses from the list menu. so what shall i put instead of the 13? in other words how to know what is selected in that list menu and pass it as user_id? Thanks for your reply anyway
  3. Try this if ($_SESSION['MM_Username'] = "your_username") { ?> MESSAGE TO BE DISPLAYED <?php } ?>
  4. Hi all, I have tried a lot of options before posting this thread. Now I am so desperate to resolve this issue, I know its a silly mistake somewhere. Pleas help. ok, in one page I have a drop down list menu which is called "username_drop" and it is taking its values from a mysql database called "user_access" which has info about the users for that page. So it is taking the username value and the user_id. In the same page i have a button which calles a second page(access.php), the action of the form is "access.php?user_id=<?php echo $row_rs_user_group['user_id']; ?>" I know that the bold part from the above is wrong. How can I make the browser take the value of whatever is selected from the list menu. Because at the moment its only taking one value no matter what i select. Basically, what I need is: I want to update a specific field from a table in mysql. I have a list menu and a button in one page which should pass the value of what ever is selected to the second page which then will change the details of that person. Please help/ I have tried everything I know
×
×
  • 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.