Greetings all!
I am working on putting a feedback form onto a website. I can do this with php and email, but I dont want it to go to email, I want it to put info into a database (mysql) I know that I am asking for a lot here, I have searched the forum and found mostly email submitting and not submitting to a database.
I have found a few tutorials on the web that show me how to do it, but none of them work, I get undefined variable messages ie:
Warning: Undefined variable: submit in c:\blah blah blah\test.php on line 2
and the other one I kept getting was something about $PHP_SELF undefined variable error.
From what I saw almost all used the "$PHP_SELF", and I cant get it to work. I understand that this variable is not assigned until the page is processed or something, but why does this error come up and how cant I get this to work. I have also seen adding the "@" sign infron of this, but will that really help, or do I need to resolve the variable problem first?
Oh yea, one more thing. Here is where I think it will get really difficult. Once the post has been made to a database, I need it to send an email notification to a certian email address to let them know.
Thanks in advance,
Todd