Quote History Quoted:
Debug the $_POST array to see if all the data coming in from the form input looks correct, prior to being put into the sql db.
If it's not, then there is some input filtering happening somewhere.
View Quote View All Quotes
View All Quotes
Quote History Quoted:
Quoted:
I have an HTML form using an input box, the form calls a php form to grab the POST contents.
It will save any data as long as a URL (http://) is not the first characters in the input box.
Http, HTTP:, http:/ all will save fine, but http:// will cause the POST array to be nulled out.
Any ideas?
Debug the $_POST array to see if all the data coming in from the form input looks correct, prior to being put into the sql db.
If it's not, then there is some input filtering happening somewhere.
The $_POST variables all get nulled by the time the catch.php is called. I know that they get passed properly beasue anything else, other than 'http://' gets saved out to the mysql database. I include osme debugging int he catch.php, namely:
ini_set('display_errors', 'On');
error_reporting(-1);
var_dump(file_get_contents('php://input'));
var_dump($_POST);
And it is showing all null arrays.
This is the errors that are being returned:
string(0) "" array(0) { }
Notice: Undefined index: Line1 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 29
Notice: Undefined index: Line2 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 31
Notice: Undefined index: Line3 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 32
Notice: Undefined index: Line4 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 33
Notice: Undefined index: Line5 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 34
Notice: Undefined index: Line6 in /home/sedoyrzi/public_html/Ads/placeAd.php on line 35
Notice: Undefined index: weeks in /home/sedoyrzi/public_html/Ads/placeAd.php on line 36
Notice: Undefined index: email in /home/sedoyrzi/public_html/Ads/placeAd.php on line 37
Notice: Undefined index: comment in /home/sedoyrzi/public_html/Ads/placeAd.php on line 38