We have a interface that has if statements in it that look for and id variable. If the ID > "" then it give you an update form, else give you an insert form.
The issue has arose that if you stay in the current window after the record has been inserted and refresh it repost the data and duplicates the record, because I can't get the id to be passed in the querystring after the insert. So it gets the data after the insert but leaves the querystring id blank.
So it then repost the data again.
What variable could I use to grab the newly inserted record.
What I really want is to post the data and go to another page to add time. But when I redirect the page on the post it won't save the update.
This is the current form header.
<form method="post" action="trans_update.asp?t_id=" name="update_trans">
What I would like to do is post and go here.
<form method="post" action="time.asp?t_id=<% = t_id %>" name="update_trans">
Thanks in advance.
Dan
The issue has arose that if you stay in the current window after the record has been inserted and refresh it repost the data and duplicates the record, because I can't get the id to be passed in the querystring after the insert. So it gets the data after the insert but leaves the querystring id blank.
So it then repost the data again.
What variable could I use to grab the newly inserted record.
What I really want is to post the data and go to another page to add time. But when I redirect the page on the post it won't save the update.
This is the current form header.
<form method="post" action="trans_update.asp?t_id=" name="update_trans">
What I would like to do is post and go here.
<form method="post" action="time.asp?t_id=<% = t_id %>" name="update_trans">
Thanks in advance.
Dan