Caché
Solved
Aminax
Posted messages
88
Status
Membre
-
Aminax Posted messages 88 Status Membre -
Aminax Posted messages 88 Status Membre -
Hello,
I need to know the purpose of hidden in forms; I know it's to hide a form field!! But what exactly is it for! Thanks in advance.
I need to know the purpose of hidden in forms; I know it's to hide a form field!! But what exactly is it for! Thanks in advance.
4 réponses
Hello,
A bit of reading:
https://forums.commentcamarche.net/forum/affich-457177-les-champs-hidden-html
A bit of reading:
https://forums.commentcamarche.net/forum/affich-457177-les-champs-hidden-html
Hello,
Hidden is used to hide something; it can be a field in a form, a div on a page, an image, or anything else. And then we can display it dynamically or not.
In the context of a form, if you don't see what it could be used for, it's simply because you don't need it. Its use isn’t frequent! But since you know it exists, the day you need it, you'll know how to use it.
Hidden is used to hide something; it can be a field in a form, a div on a page, an image, or anything else. And then we can display it dynamically or not.
In the context of a form, if you don't see what it could be used for, it's simply because you don't need it. Its use isn’t frequent! But since you know it exists, the day you need it, you'll know how to use it.
re-good evening,
It's more common than you think. For example, you post an article on a "blog". Someone wants to comment on it. So if the article has this URL:
http://www.mysite.com/index.php?displayArticle&id=23456
You put at the bottom of the page:
See you!
It's more common than you think. For example, you post an article on a "blog". Someone wants to comment on it. So if the article has this URL:
http://www.mysite.com/index.php?displayArticle&id=23456
You put at the bottom of the page:
<form....>
<input type="hidden" name="idArticle" value="<?php echo (int) $_GET['id']; "/>
......
</form>
See you!