|
|
|
date: Thu, 30 Mar 2006 16:39:18 -0600,
group: microsoft.public.inetsdk.html_authoring
back
Re: Problem with <form action="../index.html">
Why are you trying to send form data to an HTML page? An HTML page will not
be able to process the data, so why are you sending it there? If you want
the data to be processed but still have the user return to the original
page, I would add a redirect header to the page that does the processing. As
for the hyperlink working and the form not, I would try putting the files in
the same directory and see if it works then (just as a test). One other
thing you could try doing would be rewriting the action attribute as one of
the following and see if it makes a difference:
action="./../index.html"
OR
use the absolute URL instead of the relative URL
I'm not sure if any of these will make a difference, but they are simple
tests, and sometimes different browsers are pickier than others, so it never
hurts to try. Good Luck!
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
"Robert" wrote in message
news:uKpqKrEVGHA.2444@TK2MSFTNGP14.phx.gbl...
>I have a page in a folder named signup. I want to use a submit button to
>return to index.html (not in a folder).
>
> This code results in an incorrect address error when the button is
> clicked:
>
> <form method="POST" action="../index.html">
> <p align="center"><input type="submit" value="Return"></p></form>
>
> However, if I use a hyperlink instead of the button, it works fine:
>
> <p><a href="../index.html">Return</a></p>
>
> Why does the form fail whereas the hyperlink works? Any thoughts would be
> greatly appreciated.
>
> Thanks, Robert
>
>
date: Sat, 29 Apr 2006 17:53:46 -0400
author: Nathan Sokalski
|
|