Html / php problem

A

Anonymous

Guest
You can use the onload event to call a Javasript function everytime a page loads.

Example below calls a javascript function "ufSampleFunction() " everytime the page is loaded:

<html>
<head>
<script type="text/javascript">
function ufSampleFunction() {
alert("Hello World!");
}
</script>
</head>
<body onload="ufSampleFunction()">

</body>
</html>
 
you should also be able to call a small img like so.

PHP:
<img src='x.php' width='1' height='1'>

where you're calling the php script instead of an actual image.
 
Hey jpfred,
You just need to "include" it in your Html document.
Example:
Code:
<?php require_once "path/to/x.php"; ?>
<html>
<head>
<title>Test</title>
</head>
<body>
whatever
</body>
</html>
 
Back
Top