Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Dynamic Link

  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    95
    Thanks
    13
    Thanked 1 Time in 1 Post

    Dynamic Link

    Hello i have the following question.

    At the moment

    I have the following link and i pass the charid info to the next page

    PHP Code:
    <a href="products.php?charID=add&charid=2"><?php echo $row_char2['charname']; ?>

    Is there a way the charid pass to the next page more dynamically instead to right each time that its equal 2-4 ets

  2. #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,117
    Thanks
    15
    Thanked 122 Times in 122 Posts
    PHP Code:
    <a href="products.php?charID=add&charid=<?php echo $_REQUEST['charid']; ?>"><?php echo $row_char2['charname']; ?>

  3. #3
    New Coder
    Join Date
    Apr 2011
    Posts
    95
    Thanks
    13
    Thanked 1 Time in 1 Post
    i got an error my friend using this

  4. #4
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,117
    Thanks
    15
    Thanked 122 Times in 122 Posts
    ok, what does the error say?

  5. #5
    New Coder
    Join Date
    Apr 2011
    Posts
    95
    Thanks
    13
    Thanked 1 Time in 1 Post
    its ok i had to modified my query a bit and i add the charid like u said tnx for info man

    <a href="products.php?add&charid=<?php echo $row_char2['charid']; ?>"><?php echo $row_char2['charname']; ?>


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •