The "parameters" in the URL querystring should be separated by an ampersand, not a comma.
Therefore your code would read:
<a href="iaraut_mod.fwx?objectid=<%=crobj.objectid%>&iarid=<%=crcontact.iarid%>" ONCLICK="return confirm('Request Modification of selected parameter ?')"><%=TRIM(crobj.objval1)%></a>
Darryl
Sent by Cas Nuy on 07/22/2002 07:49:40 AM:
I have a problem passing 2 parameters.
My code looks like this :
<a href="iaraut_mod.fwx?objectid=<%=crobj.objectid%>,iarid=<%=crcontact.iarid%>" ONCLICK="return confirm('Request Modification of selected parameter ?')"><%=TRIM(crobj.objval1)%></a>
I only get one parameter by retrieving it via :
M.iarID = Request.Item('iarID')
If I do the same for the other one, it does not work.
the receiving program looks like this :
<%
LPARAMETERS objectid,iarID
=setsets()
* Read iar number
IF PCOUNT() = 0
M.iarID = Request.Item('iarID')
M.objectid = Request.Item('objectid')
ENDIF
IF EMPTY(M.iarID)
Response.Write("Error: No Employee id was specified")
Response.End
ENDIF
IF EMPTY(M.objectid)
Response.Write("Error: No Object id was specified")
Response.End
ENDIF
server.transfer("iaraut_show.fwx",m.iarid)
%>
The variables are nicely filled in the calling program.
What am I overlooking ?
Thanks,
Cas Nuy
Netherlands