我使用 jquery 代码在我的网站中制作了一个滑块,我想使用 php 将从滑块中获得的值发送到我的数据库。jquery 代码站点地址就在这里。http://jqueryui.com/slider/#steps
我的html表单代码:
<form action="like.php" method="post" id = "button">
<input type="hidden" name="likefemale" value = "<?php echo $rand_num_rows;?>"/>
<input type="hidden" name="likemale" value = "<?php echo $rand_num_rows1;?>"/>
<input type = "hidden" name = "slider_val" id = "slider_val"/>
<input name="like" type="submit" value="like" />
</form>
<form action="unlike.php" method="post" id = "button1">
<input type="hidden" name="unlikefemale" value = "<?php echo $rand_num_rows; ?>"/>
<input type="hidden" name="unlikemale" value = "<?php echo $rand_num_rows1; ?>"/>
<input type = "hidden" name = "slider_val" id = "slider_val"/>
<input name="unlike" type="submit" value="unlike" />
</form>
我想要这两种形式发送的值。