Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 30 Mar 2006 16:39:18 -0600,    group: microsoft.public.inetsdk.html_authoring        back       


Problem with <form action="../index.html">   
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: Thu, 30 Mar 2006 16:39:18 -0600   author:   Robert

RE: Problem with <form action="../index.html">   
"Robert" wrote:

> 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
> 


Hi Robert
> 
> I am no expert, still learning myself, but it looks to me your 'post' is going nowhere, doesnt it need to link to a website like
<form method="get" 
action="http://uk.groups.yahoo.com/subscribe/OrganicGardeningandHealthyLiving">
<table cellspacing="0" cellpadding="2" border="0" bgcolor="#ffffcc">
  <tr>
    <td colspan="2" align="center">
      <em>Subscribe to OrganicGardeningandHealthyLiving</em>
    </td>
  </tr>
  <tr>
    <td>
      <input type="text" name="user" value="enter email address" size="20">
    </td>
    <td>
      <input type="image" border="0" alt="Click here to join 
OrganicGardeningandHealthyLiving" 
       name="Click here to join OrganicGardeningandHealthyLiving"
       src="http://us.i1.yimg.com/us.yimg.com/i/yg/img/i/uk/ui/join.gif">
    </td>
  </tr>
  <tr align="center">
    <td colspan="2">
      Powered by <a 
href="http://uk.groups.yahoo.com/">uk.groups.yahoo.com</a> 
    </td>
  </tr>
</table>
</form>


I have more success with links...  :)

Leanne
date: Fri, 31 Mar 2006 04:08:03 -0800   author:   Leanne

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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us