retaining variable on webpage

Associate
Joined
5 Dec 2002
Posts
141
I currently have a webpage to enter reports (form based) and the web address ends in a unique reference number i.e.
www.webpage.shtml?HH33
The form is processed and the user is sent to a submission successful page.
What I would like to do is include a link on the successful page to enable the user to enter a new report. Adding the link is fine but I can't figure out how I can keep the "HH33" part from the previous page.
Hope the above makes sense.....
 
Associate
Joined
24 Jun 2008
Posts
1,168
You could use Javascript:
window.location.href
will return webpage.shtml?HH33
then split it up however you want to get the HH33 bit

Edit, sorry re read and I think you'll have to change the program that sends the user to the submission successful page so it includes the ?HH33 part in the address.

Simon
 
Back
Top Bottom