프로그램&DB 썸네일형 리스트형 PHP If...Else Statements 제어문 PHP If...Else Statements Conditional statements are used to perform different actions based on different conditions. Conditional Statements Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In PHP we have the following conditional statements: if statement - use this statement to execute some .. 더보기 PHP Operators 연산자 PHP Operators Operators are used to operate on values. PHP Operators This section lists the different operators used in PHP. Arithmetic Operators Operator Description Example Result + Addition x=2 x+2 4 - Subtraction x=2 5-x 3 * Multiplication x=4 x*5 20 / Division 15/5 5/2 3 2.5 % Modulus (division remainder) 5%2 10%8 10%2 1 2 0 ++ Increment x=5 x++ x=6 -- Decrement x=5 x-- x=4 Assignment Opera.. 더보기 PHP String Variables 문자열 변수 PHP String Variables A string variable is used to store and manipulate text. String Variables in PHP String variables are used for values that contain characters. In this chapter we are going to look at the most common functions and operators used to manipulate strings in PHP. After we create a string we can manipulate it. A string can be used directly in a function or it can be stored in a vari.. 더보기 PHP Variables 변수 PHP Variables A variable is used to store information. Variables in PHP Variables are used for storing values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a $ sign symbol. The correct way of declaring a variable in PHP: $var_name = value; New PHP programmers often forget the $ sign at the be.. 더보기 jQuery AJAX serializeArray() Method jQuery AJAX serializeArray() Method jQuery AJAX Methods Example Output the result of form values serialized as arrays: $("button").click(function(){ x=$("form").serializeArray(); $.each(x, function(i, field){ $("#results").append(field.name + ":" + field.value + " "); }); }); Try it yourself » Definition and Usage The serializeArray() method creates an array of objects (name and value) by serial.. 더보기 jQuery AJAX serialize() Method jQuery AJAX serialize() Method jQuery AJAX Methods Example Output the result of serialized form values: $("button").click(function(){ $("div").text($("form").serialize()); }); Try it yourself » Definition and Usage The serialize() method creates a URL encoded text string by serializing form values. You can select one or more form elements (like input and/or text area), or the form element itself.. 더보기 jQuery AJAX $.post() Method jQuery AJAX post() Method jQuery AJAX Methods Example Change the text of a div element using an AJAX POST request: $("input").keyup(function(){ txt=$("input").val(); $.post("demo_ajax_gethint.asp",{suggest:txt},function(result){ $("span").html(result); }); }); Try it yourself » Definition and Usage The post() method is used to perform an AJAX HTTP POST request. Syntax $(selector).post(url,data,s.. 더보기 jQuery AJAX $.param() Method jQuery AJAX param() Method jQuery AJAX Methods Example Output the result of a serialized object: $("button").click(function(){ $("div").text($.param(personObj)); }); Try it yourself » Definition and Usage The param() method creates a serialized representation of an array or an object. The serialized values can be used in the URL query string when making an AJAX request. Syntax $.param(object,tra.. 더보기 이전 1 ··· 11 12 13 14 15 16 17 ··· 23 다음