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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Odd HREF q.

Status
Not open for further replies.

nzgirl

Programmer
Feb 26, 2003
72
NZ
I need an underlined text as a link.
HREF does that, but I need to save some vars first.
I'm doing this by using the HREF to call the screen again with action specified but I lose the variable values...
So I tried the below BUT they don't come through until a POST...
<a href=&quot;screen.asp?Action=channel&RID=<% = RID%>&FN=<% = FirstName%>&E=<% = Email%>&LN=<% = LastName%>&C=<% = Company%>&quot;>Channels</a>

Is there a way I can call a function only within an HREF??

Thanks :)
 
Seems like you're going round in circles there, literally.
Have you got some kind of if.. save vars else.. statement going on. To maintain the values in the href you would need to request them but obviously using the same code that wont work on the first pass



 
Yeah. I thought of creating session vars... but that won't work either...
may have to give up and use a button..
:-(
 
RID isn't always populated.
Flow = enter Email address and submit. Checks for value in database.
If they don't exist nothing happens. If they do then the values for firstname etc are returned.
Then if you want to look at Channels you click on the underlined text. If the email address wasn't found before you need to add the person to the database and then go on.
The button works... :-(
 
you can't just do this :
<% = BuildButton(&quot;&quot;, &quot; Channels&quot;, 0, 0, &quot;document.Form.Action.value='Channel'; document.Form.submit();&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;) %>
with an HREF can u? I guess it needs to submit so the values come through...

hmpf.
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top