HighDots Forums  

send form and then go to another page?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss send form and then go to another page? in the Macromedia Dreamweaver forum.



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

Default send form and then go to another page? - 07-08-2004 , 11:57 AM






I know that I should know this but...
After a form is submitted, how do I redirect the visitor to another page on my
site - instead of staying on the page with the form on?
This is the code at present:-

<input type="submit" name="Send Comments" value="Send Comments"
onClick="MM_validateForm('yourname','','R','yourem ail','','RisEmail','Yourfriend
name','','R','Yourfriendemail','','RisEmail');retu rn document.MM_returnValue">
<input type="submit" name="Close" value="Close"
onClick="javascript:self.close()">

Mike


Reply With Quote
  #2  
Old   
theSquares
 
Posts: n/a

Default Re: send form and then go to another page? - 07-08-2004 , 12:25 PM






This has to do with the script that processes the data recieved from your form,
which is most likely nearby the <font>-tag. You could process things with a
..cgi-script for example. These scripts usually have several commands (ex. to
who the data must be sent, and in your case, which page to display after
submitting the form). As far as I know, this usually differs per script - it
could be something like a property called 'send' or something like that.
If you work with cgi - I'm not very much into php - you can then insert a
hidden field, which has 'send' as name, and then you must set the value to the
page you want to display.
Hope this helps.

- Bart


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

Default Re: send form and then go to another page? - 07-08-2004 , 04:46 PM



action="desirednextpage.html" or .asp or whatever....
this with your form submit along with the other parameters you are using.

Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: send form and then go to another page? - 07-08-2004 , 04:50 PM



Huh? You will never get a redirect from a static HTML page.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"tincup2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
action="desirednextpage.html" or .asp or whatever....
this with your form submit along with the other parameters you are using.



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.