Ask a Question related to Dreamweaver AppDev, Design and Development.
-
rajesh #1
redirect to ..
hi,
I have several page where you can edit the record
When you modified the record you suppose to go where you came
for example
you can update the record from the
following pages
1> search.asp
2> callsopen.asp
when you update the record from the search.asp
and you click oke you should redirect to search.asp
when you update the record from the callsopen.asp
and you click oke you should redirect to callsopen.asp
Soworking with servervariables is very new for me
<%
Request.ServerVariables("URL") & "?" &
Request.ServerVariables("QUERY_STRING")
Response.Redirect("../search.asp" )
%>
this coding is working fine when you update the record from search.asp
but how with callsopen.asp
should you use the IF statement here
something like
<%
if Request.ServerVariables("URL") = " ../callsopen") then
Request.ServerVariables("QUERY_STRING")
Response.Redirect("../callsopen.asp" )
else
Response.Redirect("../search.asp" )
end if
%>
do I have to something like this??
please advise
Kisoen
rajesh Guest
-
redirect to guest if first redirect is doesnt work for a user
Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using... -
redirect?!?!?
Hi i am wondering if anybody knows how to redirect a user to another page if a statement returns true? Here is the code, I am using PHP: // check... -
How to Redirect?
I have a PHP script that waits for a file to appear, and then redirects to it. This works fine: <?php $filename = 'NewData.html'; while (!... -
[PHP] Redirect URL
Hi I have form in file register.php. The action of this form is the same - register.php the form validation script is included in this file like... -
Redirect to New Browser Window like Response.Redirect
That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in... -
Brandon Taylor #2
Re: redirect to ..
One way you could set the redirect without having to search the querystring
is pass a variable you set yourself for the referring page.
Example: something.asp?referrer=search
<%
referrer = request.querystring("referrer")
save = request.querystring("save") = "yes"
if referrer = "search" then
retrun_val = "search.asp"
elseif referrer = "callsopen" then
return_val = "callsopen.asp"
end if
if save then
cn.execute "your statement here"
response.redirect(return_val)
end if
%>
HTH,
bT
"rajesh" <r.kisoenpersad@chello.nl> wrote in message
news:d5okbg$t4t$1@forums.macromedia.com...> hi,
>
> I have several page where you can edit the record
> When you modified the record you suppose to go where you came
>
> for example
> you can update the record from the
> following pages
>
> 1> search.asp
> 2> callsopen.asp
>
> when you update the record from the search.asp
> and you click oke you should redirect to search.asp
>
> when you update the record from the callsopen.asp
> and you click oke you should redirect to callsopen.asp
>
> Soworking with servervariables is very new for me
>
> <%
> Request.ServerVariables("URL") & "?" &
> Request.ServerVariables("QUERY_STRING")
> Response.Redirect("../search.asp" )
> %>
>
> this coding is working fine when you update the record from search.asp
> but how with callsopen.asp
>
> should you use the IF statement here
> something like
>
> <%
> if Request.ServerVariables("URL") = " ../callsopen") then
> Request.ServerVariables("QUERY_STRING")
> Response.Redirect("../callsopen.asp" )
> else
> Response.Redirect("../search.asp" )
>
> end if
> %>
>
> do I have to something like this??
>
> please advise
> Kisoen
>
>
>
Brandon Taylor Guest
-
rajesh #3
Re: redirect to ..
thx.
but still have problems if this coding should put is a UPDATE FORM
show me how does your coding fit to this update form?
As DW is making there own coding
' append the query string to the redirect URL
If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
Request.QueryString <> "") Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
End If
End If
End If
please advise how
gr. kisoen
"Brandon Taylor" <bt@btaylordesign.com> schreef in bericht
news:d5olod$1mf$1@forums.macromedia.com...querystring> One way you could set the redirect without having to search the> is pass a variable you set yourself for the referring page.
>
> Example: something.asp?referrer=search
>
> <%
> referrer = request.querystring("referrer")
> save = request.querystring("save") = "yes"
>
> if referrer = "search" then
> retrun_val = "search.asp"
> elseif referrer = "callsopen" then
> return_val = "callsopen.asp"
> end if
>
> if save then
> cn.execute "your statement here"
> response.redirect(return_val)
> end if
> %>
>
> HTH,
> bT
>
> "rajesh" <r.kisoenpersad@chello.nl> wrote in message
> news:d5okbg$t4t$1@forums.macromedia.com...>> > hi,
> >
> > I have several page where you can edit the record
> > When you modified the record you suppose to go where you came
> >
> > for example
> > you can update the record from the
> > following pages
> >
> > 1> search.asp
> > 2> callsopen.asp
> >
> > when you update the record from the search.asp
> > and you click oke you should redirect to search.asp
> >
> > when you update the record from the callsopen.asp
> > and you click oke you should redirect to callsopen.asp
> >
> > Soworking with servervariables is very new for me
> >
> > <%
> > Request.ServerVariables("URL") & "?" &
> > Request.ServerVariables("QUERY_STRING")
> > Response.Redirect("../search.asp" )
> > %>
> >
> > this coding is working fine when you update the record from search.asp
> > but how with callsopen.asp
> >
> > should you use the IF statement here
> > something like
> >
> > <%
> > if Request.ServerVariables("URL") = " ../callsopen") then
> > Request.ServerVariables("QUERY_STRING")
> > Response.Redirect("../callsopen.asp" )
> > else
> > Response.Redirect("../search.asp" )
> >
> > end if
> > %>
> >
> > do I have to something like this??
> >
> > please advise
> > Kisoen
> >
> >
> >
>
rajesh Guest
-
Brandon Taylor #4
Re: redirect to ..
Hi, sorry to take so long to get back to you.
You'll see in the MM code blocks where they execurte whatever SQL statement
and then do their response.redirect to the value of the MM_editRedirectUrl
variable. Just replace that variable with your own string and it will
redirect to whatever page you want and pass whatever values you want.
Writing your own code is so much more flexible.
"rajesh" <r.kisoenpersad@chello.nl> wrote in message
news:d5r7bu$t6f$1@forums.macromedia.com...> thx.
>
> but still have problems if this coding should put is a UPDATE FORM
> show me how does your coding fit to this update form?
> As DW is making there own coding
>
>
> ' append the query string to the redirect URL
> If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
> If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
> Request.QueryString <> "") Then
> MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
> Else
> MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
> End If
> End If
> End If
>
>
> please advise how
> gr. kisoen
>
>
>
>
>
>
>
>
>
> "Brandon Taylor" <bt@btaylordesign.com> schreef in bericht
> news:d5olod$1mf$1@forums.macromedia.com...> querystring>> One way you could set the redirect without having to search the>>> is pass a variable you set yourself for the referring page.
>>
>> Example: something.asp?referrer=search
>>
>> <%
>> referrer = request.querystring("referrer")
>> save = request.querystring("save") = "yes"
>>
>> if referrer = "search" then
>> retrun_val = "search.asp"
>> elseif referrer = "callsopen" then
>> return_val = "callsopen.asp"
>> end if
>>
>> if save then
>> cn.execute "your statement here"
>> response.redirect(return_val)
>> end if
>> %>
>>
>> HTH,
>> bT
>>
>> "rajesh" <r.kisoenpersad@chello.nl> wrote in message
>> news:d5okbg$t4t$1@forums.macromedia.com...>>>> > hi,
>> >
>> > I have several page where you can edit the record
>> > When you modified the record you suppose to go where you came
>> >
>> > for example
>> > you can update the record from the
>> > following pages
>> >
>> > 1> search.asp
>> > 2> callsopen.asp
>> >
>> > when you update the record from the search.asp
>> > and you click oke you should redirect to search.asp
>> >
>> > when you update the record from the callsopen.asp
>> > and you click oke you should redirect to callsopen.asp
>> >
>> > Soworking with servervariables is very new for me
>> >
>> > <%
>> > Request.ServerVariables("URL") & "?" &
>> > Request.ServerVariables("QUERY_STRING")
>> > Response.Redirect("../search.asp" )
>> > %>
>> >
>> > this coding is working fine when you update the record from search.asp
>> > but how with callsopen.asp
>> >
>> > should you use the IF statement here
>> > something like
>> >
>> > <%
>> > if Request.ServerVariables("URL") = " ../callsopen") then
>> > Request.ServerVariables("QUERY_STRING")
>> > Response.Redirect("../callsopen.asp" )
>> > else
>> > Response.Redirect("../search.asp" )
>> >
>> > end if
>> > %>
>> >
>> > do I have to something like this??
>> >
>> > please advise
>> > Kisoen
>> >
>> >
>> >
>>
>
Brandon Taylor Guest



Reply With Quote

