xuexue 15 Junior Poster

this is my code in php:

<?php echo "Hi!"; ?>

this is my code in javascript:


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 ^^,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.