![]() |
| ||
| Passes variable when button is clicked...HELP! I have a table displaying the list of vendors from the database. I have to select one row (vendor details). For VendorID: ------------------------Start--------------------- <table> <tr> <td>Name</td> <td>Telephone</td> <td>Email</td> </tr> <%do while not rs.eof%> <tr> <td onClick="HighLightTR('#cccccc','cc3333');"><input type="hidden" name="vendorid" value="<%=rs("VendorID")%>"><%=rs("Name")%></td> <td><%=rs("Tel")%></td> <td><%=rs("Email")%></td> </tr> <%rs.movenext loop%> </table> --------------------------End------------------------- The page also has the PropertyID which comes from the previous page. For PropertyID: -------------------------Start------------------------ <input type="hidden" name="propid"> value="<%=request.Form("propid")%>"> --------------------------End------------------------- The [vendor] record selected is highlighted (i did not put the javascript script for highlighting in here). If the user click the button (below) or an image link, the 'PropertyID' and 'VendorID' will be passed on to the next page, then display the details of the vendor selected. For button: -------------------------Start------------------------- <input type="button" value=" Select " onClick="onClick="window.location.href='select_owner_update.asp?propid=<%=ra("PropertyID")%>&vendorid=<%=rs("VendorID")%>';""> --------------------------End-------------------------- Would that be possible? :?: How? :-| Can somebody help me with this problem? Have a nice day! Lots of thanks, Francis |
| ||
| Re: Passes variable when button is clicked...HELP! <form id="form1" name="form1" method="get" action="next.asp"> then on your contact page have a recordset retrieve the values from the dbase using response.querystring("vendor") the above code sends the vale to the option in a querystring |
| ||
| Re: Passes variable when button is clicked...HELP! wud it be possible if i use table not a dropdown list? :rolleyes: thanks. |
| ||
| Re: Passes variable when button is clicked...HELP! hey there i have the same problem with you. please let me know if yours has already solved. thanks! |
| All times are GMT -4. The time now is 5:07 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC