phpbar.de logo

Mailinglisten-Archive

AW: [php] JavaScript in PHP

AW: [php] JavaScript in PHP

Krienke Jan-Philip php_(at)_phpcenter.de
Thu, 7 Mar 2002 11:17:52 +0100


Hallo alle zusammen,

ich habe den code zwar nicht getestet, aber ungefähr so müsste es gehen:
--------------------------------------------------------------------------
<?php
echo "<script language=\"JavaScript\">";
echo "function setFocus();";
echo "{";
echo "document.form1.texfield.focus();";
echo "}";
echo "</script>";

<<<HTML
<html>
<head>
<title>Short Message send...</title>
<meta http-equiv=Content-Type content=text/html;charset=iso-8859-1>
</head>
...
<body bgcolor=#FFFFFF text=#000000 onLoad=setFocus()>
...
>>>HTML
?>
--------------------------------------------------------------------------


Gruss
Jan-Philip


php::bar PHP Wiki   -   Listenarchive