Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Marja Ribbers #1
[ASP/VBscript] Preserve querystring in "get" form ?
Maybe a stupid question, but how can I preserve an existing querystring when using the "get" method to process the form.
When using "post" the current querystring is automatically preserved, but when using "get" the current querystring gets replaced with the values of the form fields. So the form fields are not added to the querystring, but instead replace the original.
--
Marja Ribbers-de Vroed
Company website:
[url]www.webwaresystems.nl[/url]
Dreamweaver extensions:
[url]www.flevooware.nl/dreamweaver/[/url]
Marja Ribbers Guest
-
How to replace first and last "," in a string in asp vbscript?
How can I replace first as well as last "," in a string? Mystring = ",3,2,5,6,1,65,22," I would like CorrectedString = "3,2,5,6,1,65,22" I... -
querystring problem after using header("Location:xxx")
On "page1.php?aaa=1" I do a redirect to remove the variables in the querystring that I don't need anymore: header("Location: page1.php?bbb=1") ;... -
Acrobat Form Submit error: changes VALUE="true" to "0"
I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"... -
#25366 [NEW]: form buttons of type "image" dont send "submit" $_POST variable in IE
From: jordanolsommer at imap dot cc Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Variables related Bug... -
Request.Form("Field Name") Versus Request.QueryString("Field Name")
I want to know what's the differences between Request.Form("Field Name") and Request.QueryString("Field Name") OR they function exactly the... -
Julian Roberts #2
Re: [ASP/VBscript] Preserve querystring in "get" form ?
Use a hidden box. eg
<input type="hidden" name="foo" value="<%=Request.Querystring("foo")%>"/>
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Marja Ribbers #3
Re: [ASP/VBscript] Preserve querystring in "get" form ?
Hi Jules,
Yes, I thought about that.
But the querystring is not the same for all pages and I've created a generic way of handling most pages in my CMS.
So I would need a generic way of preserving the current querystring on all pages as well.
--
Marja Ribbers-de Vroed
Company website:
[url]www.webwaresystems.nl[/url]
Dreamweaver extensions:
[url]www.flevooware.nl/dreamweaver/[/url]
"Julian Roberts" <newsg@charon.co.uk> wrote in message news:d14e71$5lv$1@forums.macromedia.com...> Use a hidden box. eg
>
> <input type="hidden" name="foo" value="<%=Request.Querystring("foo")%>"/>
>
> --
> Jules
> [url]http://www.charon.co.uk/charoncart[/url]
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>Marja Ribbers Guest
-
Julian Roberts #4
Re: [ASP/VBscript] Preserve querystring in "get" form ?
You could create a generic routine to loop through the Querystring
collection and write out the values as hidden boxes:
<%
Sub PreserveQuerystring
for each fld in Request.Querystring
Response.Write "<input type=""hidden"" name="""& fld & """ value=""" &
Request.Querystring(fld) & """/>"
next
End Sub
%>
and call it thus
<%Call PreserveQuerystring%>
inside the form.
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Marja Ribbers #5
Re: [ASP/VBscript] Preserve querystring in "get" form ?
Yes, that's a possibility. Thanks.
--
Marja Ribbers-de Vroed
Company website:
[url]www.webwaresystems.nl[/url]
Dreamweaver extensions:
[url]www.flevooware.nl/dreamweaver/[/url]
"Julian Roberts" <newsg@charon.co.uk> wrote in message news:d14mi6$jlj$1@forums.macromedia.com...> You could create a generic routine to loop through the Querystring
> collection and write out the values as hidden boxes:
>
> <%
> Sub PreserveQuerystring
> for each fld in Request.Querystring
> Response.Write "<input type=""hidden"" name="""& fld & """ value=""" &
> Request.Querystring(fld) & """/>"
> next
> End Sub
> %>
>
> and call it thus
>
> <%Call PreserveQuerystring%>
>
> inside the form.
>
> --
> Jules
> [url]http://www.charon.co.uk/charoncart[/url]
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>Marja Ribbers Guest



Reply With Quote

