<form method="POST" action="#"> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

<form method="POST" action="#">

Why to use action = "#"

16th Nov 2018, 12:29 AM
∆PSI KID MERCY{}
∆PSI KID MERCY{} - avatar
8 Answers
+ 23
It doesn't matter if you use action="", action="#" or if you don't use action attribute at all. All of them refer to the current uri
16th Nov 2018, 1:20 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
It is empty placeholder.... When you are using POST (php) method... Entered data is not transferred through link... It is useful for making simple login_page....
17th Nov 2018, 6:13 PM
Shubham Panchal
Shubham Panchal - avatar
+ 4
Action specifies the file (PHP) you're sending the form's values to. In that file you normally verify that the data is correct and insert it into a database or something
16th Nov 2018, 12:35 AM
voidneo
+ 2
Hello I would like to have a room for discussion in Arabic
16th Nov 2018, 8:36 PM
rasheed
+ 2
Рэйф Miller why are you spamming? If you want to advertise your code, there are separate threads for it.
17th Nov 2018, 8:20 PM
Roneel
Roneel - avatar
+ 1
Извините
17th Nov 2018, 8:22 PM
Принц
Принц - avatar
+ 1
actually in form action used to specify the page/destination that where you want to complete your action of this form.
20th Nov 2018, 5:24 AM
RI Rijan
RI Rijan - avatar
0
Эу <redacted> Здесь запрещено оскорблять кого-либо.
27th Nov 2018, 10:53 AM
Sasha