You are here: Re: Redirect function in form not redirecting « HTML « IT news, forums, messages
Re: Redirect function in form not redirecting

Posted by Adrienne Boswell on 07/06/07 18:48

Gazing into my crystal ball I observed "Neil Kennedy"
<n.kennedy927@btinternet.com> writing in
news:Zp-dnZCgs-NFFBPbnZ2dnUVZ8t2snZ2d@bt.com:

> Hi all
>
> Now I have done this before many moons ago, but just cannot, no matter
> how much I tinker, get a form to redirect when sent.
>
> I have the following, set in a multi column / multi row table:-
>
><form method="post" action="mailto:email address (removed)>

That in itself is fraught with danger - the biggest one being the user
has to have an email client to send the form data.

>
> and at the bottom I have
><input type="submit" name="submit" value="Send">
><input type="hidden" name="redirect" value="redirectfile.html">

Okay, so your action is mailto - mailto does not know anything about
redirection. Server side scripts know how to redirect.

><input type="reset" value="Reset">

Personally, I find those useless if not annoying.

>
> Any idea which bit I may have missed to prevent the form from snding
> to my email (which it does) and then redirecting to another page
> (which it doesn't!).

Yes, you need a server side form handling script, eg:
<form method="post" action="myformhandinglingscript.asp">

If you are writing the script, you probably don't need to use the
redirect hidden input element. This that I've seen in third party form
processing scripts, like http://www.response-o-matic.com/ .

>
> Cheers in advance for the help folks
>

HTH

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация