Buenas,
Tengo el siguiente documento:
Código Javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Aircraft Fleet</title>
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" href="./css/flick/jquery.ui.all.css">
<script src="./jquery-ui.js"></script>
<script src="./ui/jquery.ui.core.js"></script>
<script src="./ui/jquery.ui.widget.js"></script>
<script src="./ui/jquery.ui.button.js"></script>
<script>
$(function() {
$( "input[type=submit], a, button" )
.button()
.click(function( event ) {
event.preventDefault();
});
});
</script>
</head>
<body>
<form action="new_aircraft_fleet_process.php" method="post">
<table>
<tr><td class="forms">Registration: </td><td><input maxlength="6" type="text" name="registration" size="15"/></td></tr>
<tr><td class="forms">Type:</td><td><select name="type">
<?php
include('./config.php');
$query = mysql_query("SELECT * FROM aircrafts");
for ($row = 0; $row < mysql_num_rows($query); $row++) {
$icao = mysql_result($query, $row, 'ICAO');
$name = mysql_result($query, $row, 'Name');
echo '<option value="'.$icao.'">'.$name.'</option>';
}
?>
</select></td></tr>
<tr><td class="forms">Location: </td><td><input maxlength="4" type="text" name="location" size="15"/></td></tr>
<tr><td class="forms">Financial Status:</td><td><select name="financialstatus">
<option>Leased</option>
<option>Owned</option>
</select></td></tr>
<tr><td></td><td><input type="submit" value="Insert Submit"/></td></tr>
</table>
</form>
</body>
</html>
El problema es que si tu presionas el botón no pasa nada. Debería continuar con el proceso del form.