RobDgital Posted July 13, 2017 Share Posted July 13, 2017 (edited) Please could someone PLEASE tell me why I am not getting this $_POST[] variable from this form <form style="padding-top:30px;" action="petdetails.php" method="post" name="finder"> <fieldset> <div class="form-group"> <label for="postedId">QRCode</label> <input type="text" class="form-control" id="postedId" placeholder="QR Code" /> </div> <button type="submit" class="btn btn-info">Submit Code</button> </fieldset> </form> I am trying to pick it up on the relevant page with this $bobby = $_POST['postedId']; echo "What the actual f bobby: ".$bobby; Excuse the 'f' but I am a little frustrated. lol Edited July 13, 2017 by RobDgital Quote Link to comment Share on other sites More sharing options...
Solution mac_gyver Posted July 13, 2017 Solution Share Posted July 13, 2017 only form fields that have name='...' attributes will be submitted, using the name attribute's value as the $_POST['...] variable's name. 1 Quote Link to comment Share on other sites More sharing options...
benanamen Posted July 13, 2017 Share Posted July 13, 2017 OP, if you happen to be using Pingendo and the Drag N Drop form elements, it is a known issue that I have repeatedly told them about as far back as two years ago and they still refuse to fix it. Quote Link to comment Share on other sites More sharing options...
RobDgital Posted July 13, 2017 Author Share Posted July 13, 2017 Thanks a ton mac_gyver Must have pondered it for 40 minutes. Stupid mistake Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.