Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters to new Page dependant on CFIF

Status
Not open for further replies.

MinalMoe

IS-IT--Management
Mar 25, 2004
62
0
0
GB
When using CFIF to decide whether to jump to a new page or not, if move from a form to a new page, if a number is greater than 0, then stay on the page, of if the number is 0, then move to a new page like

"new_page.cfm?a=#a#&b=#b#&c=#c#" etc,

I can't use javascript because I want to pass quite a few variables, so what do I do in ColdFusion to force a HREF jump to the next page?

Thanks.
 
Do you want to the anchor functionality? Where when you click on a link it takes the user to that topic either on the same page or a diff page?

If so:
new_page.cfm?a=##a#&b=##b#&c=##c#

_____________________________
Just Imagine.
 
The thing is, I don't want to click on a link. What I need is like:-

<cfif Num GT 0> <href etc passing several parameters> </cfif>

So that the href isn't clicked, it just happens automatically.
 
Use cflocation to automatically redirect to the new page

Code:
<cfif Num GT 0>
   <cflocation url="new_page.cfm?a=#a#&b=#b#&c=#c#" ...>
</cfif>
 
<cflocation> redirects the page automaticaly without having a user input.

I thought you were having problems going to a specigic spot on another page.

_____________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top