tailieunhanh - Học php, mysql và javascript - p 2

13. Cookies, Sessions, and Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 Using Cookies in PHP Setting a Cookie Accessing a Cookie Destroying a Cookie HTTP Authentication Storing Usernames and Passwords Salting Using Sessions Starting a Session Ending a Session Session Security Test Your Knowledge: Questions 279 281 281 282 282 285 285 289 289 292 293 296 14. Exploring JavaScript . . . . . . . . . . | 13. Cookies Sessions and Using Cookies in PHP 279 Setting a Cookie 281 Accessing a Cookie 281 Destroying a Cookie 282 HTTP Authentication 282 Storing Usernames and Passwords 285 Salting 285 Using Sessions 289 Starting a Session 289 Ending a Session 292 Session Security 293 Test Your Knowledge Questions 296 14. Exploring JavaScript and HTML Text 299 Using Scripts Within a Document Head 301 Older and Nonstandard Browsers 301 Including JavaScript Files 302 Debugging JavaScript Errors 303 Using Comments 305 Semicolons 305 Variables 306 String Variables 306 Numeric Variables 307 Arrays 307 Operators 308 Arithmetic Operators 308 Assignment Operators 308 Comparison Operators 309 Logical Operators 309 Variable Incrementing and Decrementing 310 String Concatenation 310 Escaping Characters 310 Variable Typing 311 Functions 312 Global Variables 312 Local Variables 312 The Document Object Model 314 Browser Incompatibilities 316 Using the DOM 317 Test Your Knowledge Questions 318 Table of Contents ix 15. Expressions and Control Flow in Expressions 319 Literals and Variables 320 Operators 321 Operator Precedence 321 Associativity 322 Relational Operators 323 The with Statement 325 Using onError 326 Using 327 Conditionals 328 The if Statement 328 The switch Statement 329 The Operator 331 Looping 331 while Loops 331 Loops 332 for Loops 332 Breaking Out of a Loop 333 The continue Statement 334 Explicit Casting 334 Test Your Knowledge Questions 335 16. JavaScript Functions Objects and Arrays. 337 JavaScript Functions 337 Defining a Function 337 Returning a Value 339 Returning an Array 341 JavaScript Objects 341 Declaring a Class 341 Creating an Object 343 Accessing Objects 343 The prototype Keyword 344 JavaScript Arrays 346 Numeric Arrays 346 Associative Arrays 347 Multidimensional Arrays 348 Using Array Methods 349 Test Your Knowledge Questions 353 17. JavaScript and PHP Validation and Error Validating

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.