Home about IT Motivation Course Sales Project About Me

Sunday, March 15, 2009

one page many submit button

below php script for create 2 button in one page:

<html>
<body>
<head>
<title>Submit Banyak2</title>
</head>
<body>
<form name="form1" method="post">

<input name="button1" type="submit" onclick="form.action='cekDaftar.php';form.submit();" />
<input name="button2" type="submit" onclick="form.action='daftar.php';form.submit();" />

</form>
</body>
</html>

No comments: