我正在尝试从FORM中捕获值信息而不提交它并将信息保存到php会话,以便它可以转移到另一个页面。这是我迄今为止从基础知识到网络的所有内容
<script type="text/javascript">
$('input[name="FirstName"]').change(function(){
});
$('input[name="Class"]').change(function(){
});
$('#Model').select(function() {
var model=$('#Model').val();
});
</script>
<?php
session_start();
$_SESSION['FirstName'] = '';
$_SESSION['Class'] = '';
$_SESSION['Model'] = '';
?>
<form method='post' action='external.com/process.php' name='form101' id='form101' onChange="getModel">
<input type='text' name='FirstName' id='FirstName' value='' />
<input type='text' name='Class' id='Class' value='' />
<select name="Model" id="Model">
<option value="">------</option>
<option value="Model 1">Model 1</option>
<option value="Model 2">Model 2</option>
<option value="Model 3">Model 3</option>
</select>
</form>