php - I have a post form that submits but "$_POST" variable is empty even though my web inspector indicates otherwise -


here html:

<form id="quant" method="post" action="/portfolio" name="trans">          <div class="modal-body">         shares : <input autocomplete="off" type="text" name="quantity">         <input type="hidden" value="<?= htmlspecialchars($_get['q']); ?>" name="stock">         <input type="submit" name="val" value="confirm transaction" class="btn btn-primary">          <div id="slider-range-max"></div>         </div>         <div class="modal-footer">         <button type="button" class="btn btn-default" data-dismiss="modal">close</button>         </div>         </form> 

here image of web inspector showing in fact data requested:

image of request data

i have been trying figure out why has not been working long time, suggestions appreciated.

the code:

if(isset($_post["quantity"])) {     var_dump($_post); 

which returns nothing

then need slash after let know folder , not file: action="/portfolio/"


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -