We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,167 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

xmlhttp.responseText = 1

this is my code in php:

<?php echo "Hi!"; ?>

this is my code in javascript:

alert(xmlhttp.responseText);

now, my problem is that the output displays: "1Hi!";
even though i will not display an output in php, still a "1" appends in the beginning of the alert box.

What could be the problem?

thanks in advance ^^,

1
Contributor
0
Replies
1
View
Question
Answered
xuexue
Junior Poster
174 posts since Jul 2009
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
Question Self-Answered as of 1 Year Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0574 seconds using 2.68MB