--- id: php-forms title: "PHP Forms" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["GET vs POST", "PHP νΌ μ²λ¦¬"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["php", "programming", "w3schools", "forms", "get", "post"] raw_sources: ["https://www.w3schools.com/php/php_forms.asp"] applied_in: [] github_commit: "" --- # [[PHP Forms]] ## π― ν μ€ ν΅μ°° (One-line insight) GET data is visible in the URL and bookmarkable, but capped at ~2000 characters and NEVER safe for passwords β while POST data is invisible in the URL (no bookmarking) but has no size limit and supports file uploads β meaning the "developer preference for POST" isn't arbitrary, it directly follows from these visibility/size/capability trade-offs. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **`$_GET` / `$_POST`** β superglobal arrays collecting form data by the `name` attribute as key. [S1] - **GET** β data visible in URL; ~2000 character limit; bookmarkable; NEVER use for passwords/sensitive data. [S1] - **POST** β data invisible (embedded in request body); no size limit; supports file uploads (multi-part binary). [S1] - **No validation shown yet** β this chapter demonstrates the mechanics only; security/validation comes in later chapters. [S1] ## π μΈλΆ λ΄μ© (Details) - POST form: `
``` ```php echo $_POST["name"]; ``` ## β κ²μ¦ μν λ° μ λ’°λ - **μν:** draft - **κ²μ¦ λ¨κ³:** conceptual - **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body) - **μ λ’° μ μ:** 0.90 - **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery) ## π μ§μ κ·Έλν (Knowledge Graph) - **μμ/루νΈ:** [[PHP Tutorial]] - **κ΄λ ¨ κ°λ :** [[PHP Superglobals Get]], [[PHP Superglobals Post]], [[PHP Form Validation]] - **μ°Έμ‘° λ§₯λ½:** νΌ μ²λ¦¬μ κΈ°μ΄ β 보μμ κ³ λ €ν νΌ κ²μ¦(Form Validation) μ±ν°λ‘ μ§μ μ΄μ΄μ§. ## π μΆμ² (Sources) - [S1] W3Schools β PHP Form Handling β https://www.w3schools.com/php/php_forms.asp ## π λ³κ²½ μ΄λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "PHP Form Handling" page (Astra wiki-curation, P-Reinforce v3.1 format).