RobDgital Posted July 13, 2017 Share Posted July 13, 2017 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 Link to comment Share on other sites More sharing options...
mac_gyver Posted July 13, 2017 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. 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.