Forums

This topic is locked

form vairable

Posted 27 Mar 2003 13:54:36
1
has voted
27 Mar 2003 13:54:36 Aodhan Flynn posted:
Hi There, I want to pass a form variable through to confirm_d_e.asp but i keep getting an error telling me that "company_id" is not an object or a ull value. Any suggestion would be good.thanks

Here is my code




<%

Set Con = Server.CreateObject("ADODB.Connection"
Con.Open "dbireland"
set RSnow = Server.CreateObject("ADODB.recordset"
RSnow.Open "SELECT * FROM companys ", con






%>
<table border="1" width="75%">
<tr>
<td colspan="6"><div align="center"><strong>To Edit or Delete any of the
companys just click on the Company Name</strong></div></td>
</tr>
<tr>
<td width="100"><div align="center"><strong>Company ID</strong></div></td>
<td width="100"><div align="center"><strong>Company Name</strong></div></td>
<td width="100"><div align="center"><strong>Email Address</strong></div></td>
<td width="100"><div align="center"><strong>Address One</strong></div></td>
<td width="100"><div align="center"><strong>Address Two</strong></div></td>
<td width="100"><div align="center"><strong>County</strong></div></td>
</tr>
<%
Do While not RSnow.EOF
%>
<tr>
<td><div align="center"><%=RSnow("company_id"%></div></td>
<td> <div align="center"><a href="javascript:window.document.confirm_d_e.company_id.value ='<%=RSnow("company_id"%>';window.document.confirm_d_e.submit();"><%=RSnow("company_name"%> </a> </div></td>

<td><div align="center"><%=RSnow("email"%></div></td>
<td><div align="center"><%=RSnow("address_one"%></div></td>
<td><div align="center"><%=RSnow("address_two"%></div></td>
<td><div align="center"><%=RSnow("county"%></div></td>
</tr>
<%
Rsnow.Movenext
Loop
%>
</table>
</form>

Replies

Replied 27 Mar 2003 14:09:14
27 Mar 2003 14:09:14 Martha Graham replied:
Please, post your question in one forum on this site.

Martha Graham

Reply to this topic