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

Forms that don`t have text boxes??

Status
Not open for further replies.

NikkP

MIS
Sep 25, 2007
5
US
Hi Im trying to display something in a Form from a dB, I know how to do this but i then need to resubmit this form to a different table in the dB, what I would like to do is display something within a form but not in a text box i would like it to appear as though it was just in a <td> tag?? Any ideas?

Thanks
 
What you need to do is create the web page containing the data on-the-fly from the cgi program. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Im using ASP and have no cgi experience, im doing a final year Computing project.

Is there any way in HTML/CSS that i can display something from a dB in a form without it looking like it is in a form.

Thanks for your help.

Nik
 
You could display it in a table, and then have the same data in a bunch of hidden vars... I'm not sure what you r asking for. Do you want to be able to edit the data? Can you post an example of what you mean (on another page u saw it on??)?? -gerrygerry
Go To
 
Try something like this: You do the same thing as you would for the form.


<%
Set MyConn = Server.CreateObject(&quot;ADODB.Connection&quot;)
MyConn.Open &quot;DSN=connection&quot;
SQL = &quot;SELECT * FROM TABLE WHERE ID=&quot; & ID
Set GD = MyConn.Execute(SQL)
IF NOT GD.EOF THEN
NAME = trim(GD(&quot;NAME&quot;))
DES = trim(GD(&quot;DES&quot;))
GD.MoveNext
END IF
GD.Close
Set GD = Nothing
MyConn.Close
Set MyConn = Nothing
%>

<table><tr><td>
<br>
<b><%= NAME %></b><br>
<%= DES %><br>
<br>
</td></tr></table>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top