Jump to content

Php Not Posting


GatorGuy
 Share

Recommended Posts

This is the script I am using to post to a db.

 

<edited out by GatorGuy>

 

 

 

As of last night it was working fine when I sent it data from a form. As of this morning when I post data to it I still get the "sending....!" message but the data never makes it to the db. Nothing has been changed so there should not be a reason that it isn't working.

 

Any thoughts?

 

 

EDIT: Got it working. I had added new fields in the DB and forgot to add them to the PHP files.

Link to comment
Share on other sites

If you're using a form to feed data into this script, then I'm surprised it was working before.

To access the data posted from a form, you need to use the $_POST global variable, not $_GET ;)

 

Try changing that and let me know if it works :)

Link to comment
Share on other sites

Sorry for the long dely. I am installing Apahe on a server.

 

I was able to get the script working. I had added two fields to the table using phpmyadmin and forgot to add them to the script. When I did it went back to adding the data to the DB.

 

On a site note though, _GET does work if you don't mind the values in the URL. I will be using POST on the final run though.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...