Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I am working on a project and have managed to fix all my initial problems but when I try and submit it fails so there must be something wrong with my code to submit the info to the database.

The error returned is that all variables passed in through post are undefined, even though these errors do not show up on initial visit of the page, upon clicking submit all of these variables are no longer defined.

The relevant files are on my github here:

https://github.com/jgert427/mysqli-project

The file that is supposed to submit is confirm.php

I don't have a ton of experience with php or mysqli so I would really appreciate any and all help.


(note: I do not have nearly enough time to rewrite all my code in PDO, although I wouldn't mind hearing why one should use PDO over mysqli, or not, for future references)

What I have tried:

I have made sure that all variables are accounted for and attempted to fix the prepared statements with no success.
Posted
Updated 10-Aug-16 8:07am
v2
Comments
David_Wimbley 10-Aug-16 11:34am    
What errors do you get/it display?
Member 12679630 10-Aug-16 11:37am    
when i click submit it tells me all variables i had from post in the previous page which are defined at the top are no longer defined
David_Wimbley 10-Aug-16 11:45am    
Shouldn't you be accessing the variables using $_POST instead of $_SESSION. I didn't download your code to run it cause im lazy but thats my first guess.
Member 12679630 10-Aug-16 11:48am    
not sure about that but I do know I am not getting errors from those values just the ones that i passed to this page with post. The ones passed with session are from 2 pages prior to the confirm so I passed them with session to make it simpler.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900