/    Sign up×
Community /Pin to ProfileBookmark

pass a parameter to PHP

Hey everyone for the following PHP code, I want to pass a parameter which is ‘UseAjax=false’ Does anyone know how I would write this into the following code?

[code=php]<?php

if($this->dtrProducts && $this->dtrProducts->Paginator){

$this->dtrProducts->Paginator->Render();

}

?>[/code]

Basically the parameter will make the “back button” in the browser go back to the last page the user was viewing instead of going back to the first page of the product list. For example: The user is viewing products on page #4 and they click on a product to view it in detail. When they click the back button to go back, it takes then to page #1 instead of page #4. This is the URL of one of the product list pages: [url]http://store.scrapbookingfanatics.com/index.php?c=8[/url] If you click on page #4 and then click on a product to view it and then click the back button in your browser, you will see that instead of taking you back to page #4 it takes you back to page #1 (this is what the paramater will fix).

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@criterion9May 15.2010 — What do you mean "pass parameter"? Are you trying to send a variable to a php page, function, or otherwise?
Copy linkTweet thisAlerts:
@tirnaMay 15.2010 — Does anyone know how I would write this into the following code?[/QUOTE]

how you write it depends on what you are passing the parameter to - another function, server side script - which you haven't said.

You also haven't posted the code for the methods in the classes in your code.

I'm starting to wish I hadn't skipped school the day they taught mind reading....?
×

Success!

Help @Captainkewl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...