[tt]Hello all, I'm trying to add vbscript code to my page that would allow the user to enter a new client if not found in the database drop-down box but don't know where to start... I would greatly appreciate you helping me with either code or where I can educate myself on how it's done.
Thanks
here's the form I'm currently using
<form method="post" action="<%=MM_editAction%>" name="form1">
<table align="left" class="body">
<tr valign="baseline">
<td nowrap align="right">Bid Date: </td>
<td colspan="2">
<input type="hidden" name="biddate" value="<%=date()%>" size="32">
<%=date()%> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Entered By: </td>
<td colspan="2">
<input type="hidden" name="enteredby" value="<%=request.cookies("user"
("firstname"
%> <%=request.cookies("user"
("lastname"
%>" size="32">
<%=request.cookies("user"
("firstname"
%> <%=request.cookies("user"
("lastname"
%> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Bid Number: </td>
<td colspan="2">
<input type="text" name="bidnumber" value="" size="20">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Client: </td>
<td>
<select name="client_id">
<option value="-------">Select the Client</option>
<%
While (NOT rsClients.EOF)
%>
<option value="<%=(rsClients.Fields.Item("client_id"
.Value)%>" ><%=(rsClients.Fields.Item("client_name"
.Value)%></option>
<%
rsClients.MoveNext()
Wend
If (rsClients.CursorType > 0) Then
rsClients.MoveFirst
Else
rsClients.Requery
End If
%>
</select>
</td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Project Name: </td>
<td colspan="2">
<input type="text" name="project" value="" size="50">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td colspan="2">
<input type="submit" value="Insert Record">
<input type="reset" name="Reset" value="Clear">
<input type="hidden" name="status" value="New" size="32">
</td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="true">
</form>
P.S. My idea was to have the user either click a checkbox or button to add the new client in a pop-up window or something like that. (but I'm sure there's an easier way)
Please advice...
Thanks
here's the form I'm currently using
<form method="post" action="<%=MM_editAction%>" name="form1">
<table align="left" class="body">
<tr valign="baseline">
<td nowrap align="right">Bid Date: </td>
<td colspan="2">
<input type="hidden" name="biddate" value="<%=date()%>" size="32">
<%=date()%> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Entered By: </td>
<td colspan="2">
<input type="hidden" name="enteredby" value="<%=request.cookies("user"




<%=request.cookies("user"




</tr>
<tr valign="baseline">
<td nowrap align="right">Bid Number: </td>
<td colspan="2">
<input type="text" name="bidnumber" value="" size="20">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Client: </td>
<td>
<select name="client_id">
<option value="-------">Select the Client</option>
<%
While (NOT rsClients.EOF)
%>
<option value="<%=(rsClients.Fields.Item("client_id"


<%
rsClients.MoveNext()
Wend
If (rsClients.CursorType > 0) Then
rsClients.MoveFirst
Else
rsClients.Requery
End If
%>
</select>
</td>
<td> </td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Project Name: </td>
<td colspan="2">
<input type="text" name="project" value="" size="50">
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td colspan="2">
<input type="submit" value="Insert Record">
<input type="reset" name="Reset" value="Clear">
<input type="hidden" name="status" value="New" size="32">
</td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="true">
</form>
P.S. My idea was to have the user either click a checkbox or button to add the new client in a pop-up window or something like that. (but I'm sure there's an easier way)
Please advice...
T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
To keep a lamp burning we have to keep puting oil in it.
