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

changing form values

Status
Not open for further replies.

vasah20

Programmer
Feb 16, 2001
559
US
Hey -
I don't think you can do this - but I'm just making sure.

Is there any way to change the contents of a submitted form?

eg:
Can I do something like:

Request.Form("myel") = newvalue

thanks
leo

 
I don't know if you can actually re-set the value of a form field, but you can use a variable to make the value whatever you wish.

For example:

myel = Request.Form("myel")
myel = newvalue

Hope that helps. (Actually with the example above, you could eliminate the first statement since you don't seem to be interested in the actual form field value.)
 
no actually - it's because of a third party 'cash register' component that we're implementing here.

that component reads in form values, and one of those values that it takes in is an order-id. I'm trying to be able to generate a new order-id for an order, in case the user tries to hit refresh.

In retrospect it's a good thing that I can't do it, because that would open up the door for too many false or repeated orders

thanks anyways -
leo
 
Are u tring to modify this in HTML or in ASP pages?
Try to use Response.Redirect to another page witch changes the value of Request.Form and then come back...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top