0

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.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Martin C++
1
$p = $_GET['p'];
$page = $_GET['page'];

BUT you probably need this:

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

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

Votes + Comments
It solved my problem, thanks alot !
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.