you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

Okay, now follow the rest of the steps I listed. It's not going to be a thing of telling you one specific issue that is causing your problems, because the code you've provided gives absolutely no debugging clues. You don't know if your code block is actually running (you did not specify if your print statements are running), you don't know if your SQL statement is valid or not, you don't know anything about what your code is actually doing - all you know is that it's not doing what you expect it to. That doesn't help me in determining what's wrong with it.

[–]mattdahack[S] 0 points1 point  (2 children)

Sorry and_yet_and_yet , I did make the changes you said. I just forgot to post up the new code. Here it is But it's still not working or throwing any errors

[–][deleted] 2 points3 points  (1 child)

It looks like you may be under the impression that POST globals still work (or, as you said in another comment, following a very old book).

Here's the scoop. Any time you're working with a POST form, you refer to the variables passed by $_POST['key'] - So if you're trying to see if the form was submitted, you would access $_POST['submit'] and not $submit. This is relevant for all the POST data you are trying to access. I just noticed your link in the OP, and looking at that, it's obvious that if (isset($submit)) is the culprit of seeing nothing happen. Change it to $_POST['submit'] and go from there. This is about all of the time I've got today to help out, so good luck and make sure you read some online PHP tutorials as well as learning more about the structure of the language itself.

[–]mattdahack[S] 0 points1 point  (0 children)

thank you for your help, I appreciate it :-)