![]() |
transfering variable
I'm using the code following code to allow users to comment a picture:
Code:
but it reloads: http://www.schuelercommunity.com/index.php?page=viewphotos&pho_id=100893&per_id= so it doesn't transfer the per_id at the end. how can i fix this? thank you for any help! |
Should it be
load_page("index.php?page=viewphotos&pho_id=".$pho _id."&per_id=".$per_id."); With the extra " before ); |
no, there are four quote marks in total. i think that's right.
|
$per_id is not defined anywhere.
|
ok, another option would be just refreshing the page (just like the refresh button)
or to retrieve the current URL and to load the current URL. but i dont how to do this. |
Replace the load_page() line with:
PHP Code:
|
that gets:
Code:
http://www.schuelercommunity.com/index.php?page=viewphotos&pho_id=100913&per_id=0 |
Where is per_id located? Is it even passed on to the page?
|
per_id is in the same table as pho_id.
it is passed to the page i think because it is in the URL of the page where you submit the comment. |
Give me an example URL.
|
All times are GMT. The time now is 03:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|