Forwarding Submitted Text To A Function
Solution 1:
Two ideas for troubleshooting this:
(1) At top of the next
page (the PHP page):
<?phpecho'Received: ' . $_POST['comment'];
die();
Make sure your text is being received in the second file.
(2) Remove previous changes from idea (1) and change as follows:
$comment = 'This is a test 9876'; <-- temporary change, just for testing
Then manually run the next.php
(or whatever you called it) file and make sure the string "This is a test 9876" goes into the database.
That will probably expose the problem. But if not, please post additional info here and we'll help you to continue troubleshooting.
By the way - the best way to use StackOverflow is to ask a question, receive responses, choose a "Best" answer, and then ask a new question next time - even if they overlap. This works best because when you ask a new question there are dozens of people who read it and attempt to help, rather than only one or two when you add new information to an existing question.
Post a Comment for "Forwarding Submitted Text To A Function"