开发者

Get value from ID field (jQuery UI issue)

开发者 https://www.devze.com 2023-01-26 05:51 出处:网络
I have this page: http://jqueryui.com/demos/slider/rangemin.html I added a name attribute to the HTML code:

I have this page:

http://jqueryui.com/demos/slider/rangemin.html

I added a name attribute to the HTML code:

<input type="text" id="amount" name="amount" />

When I get the value with PHP:

<?php echo $_POST['amount'] ?>

I get 0 no开发者_StackOverflowt the the real amount (200 or 176 or 98 ...)


I'm assuming '$_POST' is PHP, only form elements with a name attribute are posted, if you have no name attribute that value wont be posted.

0

精彩评论

暂无评论...
验证码 换一张
取 消