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

Linux, Apache, MySQL, PHP

 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 1:04
djkee25-Nov-09 1:04 
GeneralRe: Help debug a php function with database and JOIN query. Pin
fly90425-Nov-09 1:08
fly90425-Nov-09 1:08 
GeneralRe: Help debug a php function with database and JOIN query. [modified] Pin
djkee25-Nov-09 1:30
djkee25-Nov-09 1:30 
GeneralRe: Help debug a php function with database and JOIN query. Pin
cjoki25-Nov-09 11:29
cjoki25-Nov-09 11:29 
QuestionImage uploads to server with php and mySQL Pin
wartotojas24-Nov-09 9:17
wartotojas24-Nov-09 9:17 
Questionpost data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 8:34
cjoki24-Nov-09 8:34 
AnswerRe: post data missing after php parses raw post to post variable Pin
fly90424-Nov-09 10:04
fly90424-Nov-09 10:04 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki24-Nov-09 11:01
cjoki24-Nov-09 11: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 11:14
fly90424-Nov-09 11:14 
GeneralRe: post data missing after php parses raw post to post variable Pin
Marc Firth24-Nov-09 23:46
Marc Firth24-Nov-09 23:46 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki25-Nov-09 9:43
cjoki25-Nov-09 9:43 
GeneralRe: post data missing after php parses raw post to post variable Pin
Marc Firth25-Nov-09 23:20
Marc Firth25-Nov-09 23:20 
GeneralRe: post data missing after php parses raw post to post variable Pin
cjoki27-Nov-09 11:37
cjoki27-Nov-09 11:37 
QuestionProblem with Visual Cpp compiler Pin
Game-point23-Nov-09 19:10
Game-point23-Nov-09 19:10 
AnswerRe: Problem with Visual Cpp compiler Pin
Richard MacCutchan1-Dec-09 3:29
mveRichard MacCutchan1-Dec-09 3:29 
AnswerRe: Problem with Visual Cpp compiler Pin
LloydA11114-Jan-10 9:42
LloydA11114-Jan-10 9:42 
QuestionHelp with assigning variables to smarty template engine (php). Pin
djkee23-Nov-09 11:20
djkee23-Nov-09 11:20 
AnswerRe: Help with assigning variables to smarty template engine (php). Pin
fly90423-Nov-09 11:53
fly90423-Nov-09 11:53 
GeneralRe: Help with assigning variables to smarty template engine (php). Pin
djkee23-Nov-09 14:42
djkee23-Nov-09 14:42 
GeneralRe: Help with assigning variables to smarty template engine (php). Pin
fly90424-Nov-09 3:30
fly90424-Nov-09 3:30 
GeneralRe: Help with assigning variables to smarty template engine (php). Pin
djkee24-Nov-09 9:30
djkee24-Nov-09 9:30 
QuestionPERL Craps game Pin
Rhodge0923-Nov-09 10:30
Rhodge0923-Nov-09 10:30 
AnswerRe: PERL Craps game Pin
Rhodge0923-Nov-09 10:51
Rhodge0923-Nov-09 10:51 
Questionextract numeric values from string Pin
shaina223120-Nov-09 3:42
shaina223120-Nov-09 3:42 
AnswerRe: extract numeric values from string Pin
cjoki20-Nov-09 7:37
cjoki20-Nov-09 7:37 

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.