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

sending 2 parameters to a new page

Status
Not open for further replies.

meltingpot

Technical User
May 11, 2004
118
GB
I have the following code to send 2 bits of information to a page, CourseID and PersonID..
My code does nothing ! It doesn't even disply the 'print.gig' Ive tried lots of quotes etc but just cannot get it ... HELP !

<a href="letters/letter_accepted.asp?CourseID=<%=(Course_accepted.Fields.Item("CourseID").Value)%> &PersonID=<%=(Course_accepted.Fields.Item("PersonID").Value)%><img src="../images/print.gif" width="30" height="20" border="0"></a>

Life is just to short sometimes ...
 
You are not closing the <a href> tag.

<a href="letters/letter_accepted.asp?CourseID=<%=(Course_accepted.Fields.Item("CourseID").Value)%> &PersonID=<%=(Course_accepted.Fields.Item("PersonID").Value)%>

You never have the final > for the tag. %> only closes the script but does not close the <a href> tag. You also need to make sure you add double quotes to this so it reads.

<a href="letters/letter_accepted.asp?CourseID=<%=(Course_accepted.Fields.Item("CourseID").Value)%> &PersonID=<%=(Course_accepted.Fields.Item("PersonID").Value)%>">





 
Many thanks .. that works great - I can never get my head round the syntax, but im just a beginer..

You saved the day ! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top