In my test.php file, I cannot run javascript and images do not show up. If I
run this file using the URL
http://localhost/index/?m=login&name=Sachin
I can see 'My name is Sachin'.
If I rename this file to test.html and open it, the image shows up and
clicking on 'Click Me!' button works fine.
Pls uncomment the tag when you run it.
=======================================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>SPIDR</title>
<script src="javascript/test.js" language="javascript">
</script>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0">
<!-- pls un comment it to test it -->
<!-- images/login.png -->
<p><input type="button" name="TEST" onclick="Hello()" value="Click Me!"
/></p>
<?php
$name = $_GET['name'];
echo 'My name is ' . $name;
?>
</body>
</html>
=======================================================
test.js
function Hello()
{
alert('Hello Ronaldo');
}
==============================================
--
View this message in context:
http://www.nabble.com/php-image---javascript-issue-tp19376008p19376099.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php