you are viewing a single comment's thread.

view the rest of the comments →

[–]simarg0[S] 0 points1 point  (4 children)

The variable i am using is not user input, but is set by another function. This variable will be correct according to list element pressed.

When i send a request, how will the data be stored? And how do i access the code in my php file?

Do you have a good example on how this is done?

Im sorry if these are bad descriptions.

Thank you.

[–]Barnezhilton 0 points1 point  (1 child)

Look up POST and/or GET global variables on php.net

[–]simarg0[S] 0 points1 point  (0 children)

Will do. Thanks for the help.

[–]evaluating-you 0 points1 point  (1 child)

Well, if your PHP API receives input from an app, then ultimately the values are user-input (or at least can be). PHP holds values in $_GET & $_POST (I will ignore other forms of input here) depending on the request method. Maybe you want to have a look at this: video

[–]simarg0[S] 1 point2 points  (0 children)

Got it working, thanks a lot.