williamt74 Posted January 9, 2013 Share Posted January 9, 2013 Hi, I have a db interface that passes variables as hidden data. The issue I am having is that fhis works with all of my code except one. When I click on the "button" it acts like it will process and then just take me to a blank page. I don't see any differences in the code compared to the other buttons. I even tried to change it to a Test page and see if it would atleast echop the variables but it still goes to a blank page. so a button that works <form action='home.php' method='POST'> <input type='hidden' name='action' value='df'> <input type='hidden' name='ID' value='$ID'> <input type='submit' value='(D)' name='esubmit'> The buttton that doesn't work <form action='home.php' method='POST'> <input type='hidden' name='action' value='testpage5'> <input type='hidden' name='Name' value='$Name'> <input type='submit' value='(D)' name='esubmit'> </form> The only differnece is one asks for a name variable and the other one asks for an id. I even tried changing up the malfunctioning one to an id and it still does the blank page. I have check the "home.php" to make sure the action is set correctly and the info was being passed correctly and it appears to be setup correctly so I am a bit confused on why this is happening. any help/suggestions would be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/272901-help-form-not-posting-correctly/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 9, 2013 Share Posted January 9, 2013 Have you checked the 'view source' of the form in your browser so that you know the fields have the values you expect? Is there any other form on the page, in case you have invalid/nested forms. What's the exact form processing code, since it could be testing for field names that don't exist or don't exactly match the form? Quote Link to comment https://forums.phpfreaks.com/topic/272901-help-form-not-posting-correctly/#findComment-1404461 Share on other sites More sharing options...
williamt74 Posted January 10, 2013 Author Share Posted January 10, 2013 hmmm i tried running the error check in the php but i get a blank page. Will try the view source and see if that shows me something. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/272901-help-form-not-posting-correctly/#findComment-1404723 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.