Click here to Skip to main content
15,892,674 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: New Lang ? Pin
Dr.Walt Fair, PE14-Dec-09 14:44
professionalDr.Walt Fair, PE14-Dec-09 14:44 
Questionstr_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:01
Quiltfish26-Nov-09 9:01 
AnswerRe: str_replace vs hebrevc Pin
fly90426-Nov-09 9:17
fly90426-Nov-09 9:17 
AnswerRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 9:22
sitebuilderLuc Pattyn26-Nov-09 9:22 
GeneralRe: str_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:39
Quiltfish26-Nov-09 9:39 
GeneralRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 9:46
sitebuilderLuc Pattyn26-Nov-09 9:46 
GeneralRe: str_replace vs hebrevc Pin
Quiltfish26-Nov-09 9:58
Quiltfish26-Nov-09 9:58 
GeneralRe: str_replace vs hebrevc Pin
Luc Pattyn26-Nov-09 12:14
sitebuilderLuc Pattyn26-Nov-09 12:14 
QuestionHelp debug a php function with database and JOIN query. Pin
djkee24-Nov-09 20:10
djkee24-Nov-09 20:10 
AnswerRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 21:25
fly90424-Nov-09 21:25 
GeneralRe: Help debug a php function with database and JOIN query. Pin
djkee24-Nov-09 21:40
djkee24-Nov-09 21:40 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 21:44
fly90424-Nov-09 21:44 
GeneralRe: Help debug a php function with database and JOIN query. Pin
djkee24-Nov-09 22:13
djkee24-Nov-09 22:13 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90424-Nov-09 22:42
fly90424-Nov-09 22:42 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 0:04
djkee25-Nov-09 0:04 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90425-Nov-09 0:08
fly90425-Nov-09 0:08 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 0:30
djkee25-Nov-09 0:30 
GeneralRe: Help debug a php function with database and JOIN query. Pin
cjoki25-Nov-09 10:29
cjoki25-Nov-09 10:29 
QuestionImage uploads to server with php and mySQL Pin
wartotojas24-Nov-09 8:17
wartotojas24-Nov-09 8:17 
Questionpost data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 7:34
cjoki24-Nov-09 7:34 
AnswerRe: post data missing after php parses raw post to post variable Pin
fly90424-Nov-09 9:04
fly90424-Nov-09 9:04 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 10:01
cjoki24-Nov-09 10:01 
fly904,

thanks for the response but I found my error. Using the GM_xmlhttpRequest object I mistakely set the content type to...

GM_xmlhttpRequest({
			method: 'POST',
			url: '[URL deleted for post]/copy_prdt.php',
			data: postdata,
			headers: 
			{
				'Content-type': 'x-www-form-urlencoded'
			},			
			onload: function(responseDetails) 
			{
				alert('Request returned ' + responseDetails.status + ' ' + responseDetails.statusText + '\n\n' +' data:\n' + responseDetails.responseText);
			},
			onError: function(responseDetails)
			{
				alert('Request complained ' + responseDetails.status + ' ' + responseDetails.statusText + '\n\n' +' data:\n' + responseDetails.responseText);
			}
		});


and it needed to be...

GM_xmlhttpRequest({
			method: 'POST',
			url: '[URL deleted for post]/copy_prdt.php',
			data: postdata,
			headers: 
			{
				'Content-type': 'application/x-www-form-urlencoded'
			},			
			onload: function(responseDetails) 
			{
				alert('Request returned ' + responseDetails.status + ' ' + responseDetails.statusText + '\n\n' +' data:\n' + responseDetails.responseText);
			},
			onError: function(responseDetails)
			{
				alert('Request complained ' + responseDetails.status + ' ' + responseDetails.statusText + '\n\n' +' data:\n' + responseDetails.responseText);
			}
		});


It is odd, I did not get any error messages and the script seem to work fine, except for the post variable not having the data parsed into it.

I can only guess that the php parser was confused and quietly aborted the parsing of the post data.
GeneralRe: post data missing after php parses raw post to post variable Pin
fly90424-Nov-09 10:14
fly90424-Nov-09 10:14 
GeneralRe: post data missing after php parses raw post to post variable Pin
Marc Firth24-Nov-09 22:46
Marc Firth24-Nov-09 22:46 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki25-Nov-09 8:43
cjoki25-Nov-09 8:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.