user3258732
user3258732

Reputation: 21

what does name="data[user][pass] in input tag means?

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

Answers (2)

Ja͢ck
Ja͢ck

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

Jignesh Patel
Jignesh Patel

Reputation: 1022

$_GET['data']['user']['pass']; // or
$_POST['data']['user']['pass']; // or
$_REQUEST['data']['user']['pass'];

Upvotes: 0

Related Questions