O
O
Ohurmevshiy2020-05-10 18:32:01
PHP
Ohurmevshiy, 2020-05-10 18:32:01

In the form tag, the action attribute doesn't point to a specific php file, why?

<form action="/j_spring_security_check">
</form>

Looked forms on different sites. Why don't you specify a specific file? Or is this value substituted in js somewhere in ajax requests? Examples that show how to work with the form, it is the final file that will process the data. Please provide examples.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2020-05-10
@Ohurmevshiy

Google:
single entry
mod_rewrite or similar
routing mechanism
In general - it is not always necessary to specify the target file for many reasons, for example it is an index file and it is not necessary to specify it, or everything is configured according to the above technologies.

I
Ivan Ivanov, 2020-05-10
@maksim_fix

And what is the problem? You were very vague

<form action="sendMessage.php" method="POST">
Введите сообщение<input type="text" name="message">
</form>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question