reversenorm Posted June 24, 2008 Share Posted June 24, 2008 Hello, I'm working with a custom shopping cart and we got an order that was missing key info. In this php script I have built in many catches for making sure the information was passed along, the only place I don't have these catches is on the final processing page where the user cannot change any information. I have tested and re tested my script and no matter what I try I can't reproduce the error. So my question is is it possible that the users connection to have failed on that final processing page and didn't pass the variables to the final mySql command line that puts the order information into the server? The main reason I'm thinking it's this is that there is an option drop down for the shipping method and it is impossible for the user to not choose some kind of shipping, and this order came through with no shipping method of any kind. Any thoughts? Link to comment https://forums.phpfreaks.com/topic/111743-variables-seemed-to-vanish/ Share on other sites More sharing options...
lemmin Posted June 24, 2008 Share Posted June 24, 2008 Someone could have been messing around and sending their own values. You should always validate even when it seems impossible for the browser to let the user error because there are a lot of ways around the browser. Link to comment https://forums.phpfreaks.com/topic/111743-variables-seemed-to-vanish/#findComment-573629 Share on other sites More sharing options...
DarkWater Posted June 24, 2008 Share Posted June 24, 2008 I can make the shipping type Tofu if I wanted if you do no validation. It's quite easy to modify POST variables. Link to comment https://forums.phpfreaks.com/topic/111743-variables-seemed-to-vanish/#findComment-573653 Share on other sites More sharing options...
reversenorm Posted June 24, 2008 Author Share Posted June 24, 2008 Well I did find one error in the edit options, as for the order it's void, thanks for the tips. Link to comment https://forums.phpfreaks.com/topic/111743-variables-seemed-to-vanish/#findComment-573667 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.