Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 08:11 PM
Zhidian Du
Guest
 
Posts: n/a
Default 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.
  #2  
Old July 20th, 2005, 08:11 PM
Michael Wilcox
Guest
 
Posts: n/a
Default Re: what is: form action="/"?

Zhidian Du wrote:[color=blue]
> <form method="post" action="/" enctype="multipart/form-data"
> name="fatigo">[/color]
[color=blue]
> I have no idea why the action is not a URL, can you explain it why.[/color]

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/
  #3  
Old July 20th, 2005, 08:11 PM
Brian
Guest
 
Posts: n/a
Default Re: what is: form action="/"?

Zhidian Du wrote:[color=blue]
> 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,[/color]

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/
  #4  
Old July 20th, 2005, 08:11 PM
Mark Tranchant
Guest
 
Posts: n/a
Default Re: what is: form action="/"?

Zhidian Du wrote:[color=blue]
> 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.[/color]

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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles