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

Posting variables to another asp page

Status
Not open for further replies.

markdt

Technical User
Feb 15, 2006
63
GB
Got a problem with the following code:

<form name="form1" method="post" action="resp_update.asp?action=edit&concernid=" <%concernid%>>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Enter Concern ID </td>
<td><input name="concernid" type="text" id="concernid"></td>
<% concernid=Request.Form(txtConID)%>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>

I want to post to resp_update and run an edit action with a certain id number, but all i get is Type mismatch: 'concernid'

Any ideas would be appreciated.
 
>[tt]<form name="form1" method="post" action="resp_update.asp?action=edit&concernid=[highlight]"[/highlight][COLOR=white orange] [/color]<[highlight]%c[/highlight]oncernid%>>[/tt]
[tt]<form name="form1" method="post" action="resp_update.asp?action=edit&concernid=<%[red]=[/red]concernid%>[red]"[/red]>[/tt]
 
Thanks for your reply

That seems to have fixed that problem but now i have a another passing the txtConID to a variable i get error:

Request object error 'ASP 0102 : 80004005'
Expecting string input

/concern/respupdate.asp, line 18

The function expects a string as input.

Any ideas?
 
<form name="form1" method="post" action="resp_update.asp?action=edit&concernid=<%=concernid%>">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Enter Concern ID </td>
<td><input name="txtConID" type="text"></td>
<%concernid=Request.Form("txtConID")%>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>
 
><%concernid=Request.Form("txtConID")%>
What is the deal here to have a line defining the server-side variable concernid at that _position_? Before that, what is it?
 
Im not too sure i understand you. What i want to do is have a text box where the user inputs a number. When the submit button is pressed then passes the action command including the concernid variable that the user entered in the text box.

I hope thats a little clearer.
 
Its okay i sorted it now. Im just being thick! im requesting the txt box from the other asp page im posting it to. it now working fine.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top