Is it possible to make a $_Request[""] from an attribute other than name=""?

Asked

Viewed 24 times

0

I wonder if it would be possible to make a $_Request[""] of the attribute of an HTML tag besides the name="". In my case it would be date-Fotocapa="test.jpg". Dai would request the date-Photo Cover.

Thanks!!

  • 1

    Nor would it make sense. The browser does not send any properties other than name+value.

  • Yeah, it just hit me. Nothing to see what I asked

  • And avoid request. Always explain whether it is _GET or _POST, to avoid confusion and misuse of your application.

  • @Is there any substantial difference between explicit use as you say and $_REQUEST ? I ask because, I always have this doubt between these Global... What I know is that GET, goes through the URL a number x of bytes and POST passes camouflaged, a larger number and in addition has $_REQUEST.. I never really understood this trio...

  • 1

    @Magichat the request takes both the get and the post, but in a normal situation, you don’t want this "whatever". If you have a form with POST, there is no reason to consider that "if you come by GET also serves". Just the opposite. Even worse if it comes from both of you for some reason. And the request still mixes cookies, depending on the config. After all you have to be careful with name conflict.

  • Um... I get it...

  • And you might even have security issues, I saw this and a post on a programming blog

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.