# VBscript: redirect to previous page

**URL:** <https://forum.kirupa.com/t/vbscript-redirect-to-previous-page/244338>\
**Category:** programming\
**Created:** [November 16, 2007, 2:58pm UTC](https://forum.kirupa.com/t/vbscript-redirect-to-previous-page/244338 "2007-11-16T14:58:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_sniper](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@code\_sniper](https://forum.kirupa.com/u/code_sniper)\
**Post date:** [November 16, 2007, 2:58pm UTC](https://forum.kirupa.com/t/vbscript-redirect-to-previous-page/244338/1 "2007-11-16T14:58:33Z")

</div>

I am coding a website.  
From the form page, i want to pass a querystring to another page, but after processing. Its should return to the page from where it was send.

If suppose the processing page is at:  
localhost/project1/cookie.asp

If the form page is:  
localhost/project1/form.asp

I will pass a query string :  
cookie.asp?id=1&y=5

after processing at “cookie.asp”, it should return to “form.asp”

Even if i pass querystring from “form1.asp”, then also it should also return to “form1.asp” page.

If i confused you ppl, pls tell. I will try to explain it in a better way.
