![]() |
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.
|
<a href="http://www.schuelercommunity.com/index.php?page=viewphotos&pho_id=100946&per_id=100 838" target="_blank">http://www.schuelercommunity.com/ind...&per_id=100838</a>
thank you |
It should be working then...See if this works (if it works, I'll have to tweak it a bit to clean some variables).
PHP Code:
|
hi, i tried it and the same:
it gets to the URL: Code:
http://www.schuelercommunity.com/index.php?page=viewphotos&pho_id=100860&per_id= |
Try:
PHP Code:
|
now it get's
http://www.schuelercommunity.com/index.php?page=viewphotos&pho_id=100958&per_id=0 with a zero at the end...:( |
Are you sure it's actually in the URL of the page that the script in being run?
|
All times are GMT. The time now is 03:15 AM. |
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:
|