468,239 Members | 1,636 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,239 developers. It's quick & easy.

what is: form action="/"?

I am using java to write to url, http://fatigo.bioinfo.cnio.es/ , but
I found the form is :

<form method="post" action="/" enctype="multipart/form-data"
name="fatigo">
I have no idea why the action is not a URL, can you explain it why.

Thanks.
Jul 20 '05 #1
3 4102
Zhidian Du wrote:
<form method="post" action="/" enctype="multipart/form-data"
name="fatigo"> I have no idea why the action is not a URL, can you explain it why.


The slash in the action attribute means the form will send the data to
the root page, probably the home page.
--
Michael Wilcox, http://mikewilcox.t35.com/
Jul 20 '05 #2
Zhidian Du wrote:
I am using java to write to url, http://fatigo.bioinfo.cnio.es/ , but
I found the form is :

<form method="post" action="/" enctype="multipart/form-data"
name="fatigo">

I have no idea why the action is not a URL,


It is a url -- a relative url that points to the root of the server
where the form is access from. Is that where the form script is?

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
Zhidian Du wrote:
I am using java to write to url, http://fatigo.bioinfo.cnio.es/ , but
I found the form is :

<form method="post" action="/" enctype="multipart/form-data"
name="fatigo">
I have no idea why the action is not a URL, can you explain it why.


The action is a URL: it is the URL whatever the server is configured to
serve at the root of the current webspace. It could be "index.php" for
example.

It's the same mechanism that allows you to type:

http://www.example.com/

instead of

http://www.example.com/index.php

--
Mark.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Pete Wilson | last post: by
5 posts views Thread by Werner Partner | last post: by
3 posts views Thread by asianboi | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.