Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- include 'connect_to_mysql.php';
- ?>
- <!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>index</title>
- <script type="text/javascript" src="js_scripts/jquery.js"></script>
- <script src="js_scripts/jquery-1.7.1.min.js"></script>
- <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
- <script type="text/javascript" src="http://code.jquery.com/ui/1.8.18/jquery-ui.min.js"></script>
- <script>
- $(document).ready(function (){
- $(".add_detail_land_down").click(function(){
- var hidden_count = $('input[name=addon_detail_hidden_count]').val();
- $.ajax({
- type: "GET",
- url: "addon_detail_calc.php",
- data: { hidden_count: hidden_count },
- dataType: "json",
- success: function (data) {
- $("#total_hidden_count").html(data.total_hidden);
- $("#output").html(data.output);
- }
- });
- return false;
- })
- $(".add_detail_land_down").click();
- });
- </script>
- </head>
- <body>
- <div id="wrapper">
- <form action="" method="post">
- <div id="output"><input type="hidden" name="addon_detail_hidden_count" id="addon_detail_hidden_count" class="addon_detail_hidden_count" value="1" /></div>
- <input name="add_detail_land_down" type="submit" class="add_detail_land_down" value="add_detail_down"/>
- <div id="total_hidden_count" class="add_detail_result_wrap">-</div><!---end add_detail_result_wrap--->
- </form>
- </div><!---end wrapper--->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement