By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,790 Members | 1,107 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,790 IT Pros & Developers. It's quick & easy.

what is: form action="/"?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.