---URGENT---

Hai,
I wrote a code :

<html>
<body>
<%response.write "<form action=http://localhost/rentry.asp?tid="& request("tid") &">"%>
				<textarea name="treply" rows="10" cols="100">Enter ur text here</textarea>
				<input type="Reset" name="subFThread" value="Reset">
				<input type="submit" name="subFThread" value="Post">
</form>
</body>
</html>

Here i wanted to send a piece of data (tid, that i extract from the earlier asp window using Request) value along with treply to the next asp file so that it can process that data. But when i click the submit button, it does not send that data to the next window.
Instead it sends this :

http://localhost/computer_workshop/tt/rentry.asp?treply=text+data+being+passed&subFThread=Post

via the address bar, whereas i wanted it to send

http://localhost/rentry.asp?tid=24&treply=text+data+being+passed&subFThread=Post

How to achieve this???
Please help me, Thanks in advance.

Recommended Answers

All 2 Replies

Try creating a hidden field in your form with the name "tid" and assign it the value you wish it to hold and then set the action field of the form to only http://localhost/rentry.asp .

Try creating a hidden field in your form with the name "tid" and assign it the value you wish it to hold and then set the action field of the form to only http://localhost/rentry.asp .

I did it a little bit earlier than your post and it worked!!
Any ways Thanks
It works!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.