Reputation: 21
I found this inside an input tag of a website:
... name="data[user][pass]" ...
What does this mean? How can I make this with php in the tag attribute? and how can I read this?
Upvotes: 1
Views: 55
Reputation: 173662
If present in an <input>
tag and when the corresponding form gets submitted to a PHP script it can be accessed like:
$_GET['data']['user']['pass']; // or
$_POST['data']['user']['pass'];
Depending on the request method.
Upvotes: 1
Reputation: 1022
$_GET['data']['user']['pass']; // or
$_POST['data']['user']['pass']; // or
$_REQUEST['data']['user']['pass'];
Upvotes: 0