Сообщение от 9xakep
|
тут js не нужен
|
Почти
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
</head><body>
<?php
$a1 = $_POST['a1'];
$a2 = $_POST['a2'];
if ($_POST['a1'] && $_POST['a2']) echo $_POST['a1'].' '.$_POST['a2'];
?>
<form id="dFo">
<input type="hidden" name="a1" value="слово1"><input type="hidden" name="a2" value="слово2">
</form>
<span onclick="document.getElementById('dFo').submit()">Кликни меня</span>
</body></html>