HighDots Forums  

"Redirect" question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss "Redirect" question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
thefeld2
 
Posts: n/a

Default "Redirect" question - 11-15-2004 , 08:48 PM






Newbie question using dreamweaver mx (mac)... Is there a "redirect" function to
redirect a client back to the same page after they fill out a form I created.
(I talked to tech from the hosting firm I am going to use, and he said just
use a redirect function somewhere in dreamweaver.


Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: "Redirect" question - 11-15-2004 , 09:16 PM






.oO(thefeld2)

Quote:
Newbie question using dreamweaver mx (mac)... Is there a "redirect" function to
redirect a client back to the same page after they fill out a form I created.
Such things are usually handled by the form processing script on the
server. After receiving and processing the submitted data it could send
a new page or a redirect back to the client.

Quote:
(I talked to tech from the hosting firm I am going to use, and he said just
use a redirect function somewhere in dreamweaver.
They're probably referring to a meta-refresh, but you really don't wanna
use that.

Use standard redirects: don't break the back button!
http://www.w3.org/QA/Tips/reback

Micha


Reply With Quote
  #3  
Old   
thefeld2
 
Posts: n/a

Default Re: "Redirect" question - 11-15-2004 , 10:53 PM



Thank you for responding, however after reading over the link in your response,
I am not sure if that is what I want (or how to do it... this is my first
site). What I have is a page called "Order". I want the first series of
questions to come directly to me by clicking on "submit and continue", and
right after that "click" I want him right back to this spot (or page) to order
through paypal. What exactly do I do to achieve this?


Reply With Quote
  #4  
Old   
thefeld2
 
Posts: n/a

Default Re: "Redirect" question - 11-16-2004 , 09:56 AM



Keep in mind, also- I am looking for a function in dreamweaver to do this for
me primarily because I don't know code. I learned dreamweaver to do just this
site, so if there is not a function that will supply a "redirect" coding, does
anyone have references or know the coding that will redirect the client back to
the same page.
thanks again


Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: "Redirect" question - 11-16-2004 , 10:22 AM



.oO(thefeld2)

Quote:
Thank you for responding, however after reading over the link in your response,
I am not sure if that is what I want (or how to do it... this is my first
site). What I have is a page called "Order". I want the first series of
questions to come directly to me by clicking on "submit and continue", and
right after that "click" I want him right back to this spot (or page) to order
through paypal. What exactly do I do to achieve this?
A server-side script for handling the form data. Ask your host if they
have something ready-to-use or search Google for formmailer, there are
lots of scripts out there (PHP, ASP, Perl, ...).

Micha


Reply With Quote
  #6  
Old   
thefeld2
 
Posts: n/a

Default Re: "Redirect" question - 11-16-2004 , 03:42 PM



Thanks for the input, I will contact the server tomorrow, and fill his ears with questions.

Reply With Quote
  #7  
Old   
Jim Gibson sbswa.com
 
Posts: n/a

Default Re: "Redirect" question - 11-16-2004 , 04:11 PM



If you have coded a form, the action parameter specifies the file that will
process the form. In that form processing page (whether it is a CGI script, or
a ColdFusion page, or whatever) you can code Javascript to redirect the browser
back to the original page, like this:
<script language="JavaScript">
location.href="myFormPage.htm";
</script>



Reply With Quote
  #8  
Old   
Michael Fesser
 
Posts: n/a

Default Re: "Redirect" question - 11-16-2004 , 05:49 PM



.oO(Jim Gibson sbswa.com)

Quote:
If you have coded a form, the action parameter specifies the file that will
process the form. In that form processing page (whether it is a CGI script, or
a ColdFusion page, or whatever) you can code Javascript to redirect the browser
back to the original page, like this:
script language="JavaScript"
location.href="myFormPage.htm";
/script
Arrrgh ... please don't do such crap! The correct and reliable way is to
use a server-side redirect, quite easy to do in all scripting languages.

Using Javascript for redirecting is even worse and more unreliable then
the (ab)use of the meta-refresh for such things.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.