954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help with $_GET

Hello,

I need to get two get functions from url, but I cant get the second one, how can I do it ?

Something like this:

<h4><a href='?p=edit-page.php?page=$id'>$title</a></h4>


The p will include the edit-page.php in my container which is just list of page titles and when I click on one of those titles the ?page should load the form and let me edit the page. Only problem is, I dont know how to get the ?page when I already declared one get action before that.

Martin C++
Light Poster
43 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 
$p = $_GET['p'];
$page = $_GET['page'];


BUT you probably need this:

<h4><a href='?p=edit-page.php<strong>&</strong>page=$id'>$title</a></h4>


However, not sure what you're trying to do here.

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,800 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 

It was the second line, thanks alot !!

Martin C++
Light Poster
43 posts since Aug 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You