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

if statments

Status
Not open for further replies.

Manic

Programmer
Feb 28, 2001
343
GB
I have the following code and I want it to display a field only if there is information in it.

I can get it do always display the link or never display the link.

AAAARRRGGGHH.

The rest of the page works though.

Manic

if trim(request("techID")) = trim(rs("techquestionid")) then
response.write rs("answertext")
if trim(request("furtherinfo")) = "" then
response.write &quot;<br><a target='_new' href='&quot; & RS(&quot;furtherinfo&quot;) & &quot;'>Click here for more info</a>&quot;
else
response.write &quot;</TD></TR><BR>&quot;
end if
end if -----------------------------
I've broken it again !!
-----------------------------
 
should you not be asking if trim(request(&quot;furtherinfo&quot;)) <> &quot;&quot; ?????

and just as a note, your application will perform better (albeit only a little, but lots of littles become lots) if you specify querystring or form when you do a request...

 
I have tried that but Now it doesn't show the text if there is any.

Thanks for the help though.

Manic -----------------------------
I've broken it again !!
-----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top