Results 1 to 3 of 3

Thread: Not sure what title to use sorry...

  1. #1
    Join Date
    Dec 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Not sure what title to use sorry...

    I have a problem i can't seem to find help fixing/resolving & i hope one of you could help me

    The problem is well i over a LONG period of time managed to make a login manager for personal use for myself, anyways i have it to run within firefox sidebar & all works well apart from 1 small problem, when i want to modify a login i go to modify.php & then i given a list stored accounts & i simply click that account name & im givem modify.php?username=Username as the page, now this new page opens over the main page & not within the sidebar. I have pasted the code below thats relevant to the problem...

    the part i have been trying to search for help & think its that part that needs to be fixed is echo '<form action="modify.php?username='; but not 100%

    I hope you understand my problem & can help me fix this. Thanks



    $username = $_GET['username'];
    $result2 = mysql_query("SELECT * FROM `users` WHERE `username`= '".mysql_real_escape_string($_GET['username'])."'");
    while($row2 = mysql_fetch_array($result2))
    {
    echo '<form action="modify.php?username=';
    echo $_GET['username'];
    echo '"';
    echo 'method="POST">
    Name <br><input type="text" name="name" value="' . $row2['name'] . '" /><br>
    Username:<br> <input type="text" name="username" value="' . $row2['username'] . '" /> <br>
    Password:<br> <input type="text" name="pwd" value="' . $row2['pwd'] . '" /> <br>
    SESS id:<br> <input type="text" name="ssid" value="' . $row2['ssid'] . '" /> <br>
    <input type="submit" value="Update!" />
    </form> ';


  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I'm not following *sorry*

    Is this a website with a sidebar division? (like a 2-column layout, in which case, can you post a link so we can see it in effect - it might be that you can use a GET variable to load content into a frame/div via ajax or something)

    Or a widget or some kind?

    Either way, I think we need more information.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Dec 2008
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, i managed to fix it so ty for the help

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
  •