Results 1 to 8 of 8

Thread: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

  1. #1
    Anonymous
    Guest


    ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผมลองเขียนตัวอย่างง่ายๆ ดังนั้
    [code]<form name="form1" method="post" action="Insert_Content.php">


  2. #2
    Junior Member
    Join Date
    Sep 2002
    Location
    United States
    Posts
    0


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผลลองพิมพ์ดูแล้วก้อ ได้นิครับ

    //ไฟล์ ที 2 ต้องเป็นตัวใหญ่เล็กตามนี้ด้วยนครับ
    Insert_Content.php

    ลองดูอีกทีนะครับ

  3. #3
    Anonymous
    Guest


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผมลองทุกทางแล้วครับ ลอง upload ไปยัง web hosting แล้วด้วยก็ได้ผลลัพธ์เหมือนกัน มันเป็น code ง่ายๆ ไม่น่าจะมีอะไรผิดพลาดนะครับ ยังไงลอง test ให้หน่อยนะครับ ว่าเหมือนกันหรือเปล่า

  4. #4
    Anonymous
    Guest


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผมพอจะทราบสาเหตุแล้วครับสำหรับ php version 4.3.9 ลองอ่านนี่ดูนะครับ
    - register_globals = Off [Security, Performance]
    ; Global variables are no longer registered for input data (POST, GET, cookies,
    ; environment and other server variables). Instead of using $foo, you must use
    ; you can use $_REQUEST["foo"] (includes any variable that arrives through the
    ; request, namely, POST, GET and cookie variables), or use one of the specific
    ; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
    ; on where the input originates. Also, you can look at the
    ; import_request_variables() function.
    ; Note that register_globals is going to be depracated (i.e., turned off by
    ; default) in the next version of PHP, because it often leads to security bugs.
    ; Read http://php.net/manual/en/security.registerglobals.php for further
    ; information.

  5. #5
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผมว่าพี่เขาเปิด register_gobal เรียบร้อยแล้วนะครับ ผมว่ามานคงไม่เกี่ยวนะครับ

  6. #6
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ผมว่าพี่เขาเปิด register_gobal เรียบร้อยแล้วนะครับ ผมว่ามานคงไม่เกี่ยวนะครับ
    เขาใช้ localhost นะครับ ;-)

  7. #7
    Anonymous
    Guest


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    สรุปแล้วต้องตั้ง่ค่าของ global reqister เป็น on หรือ off ละครับ แล้วถ้าผมจะ upload ไฟล์ไปที่ web hosting จะต้องตั้งค่ายังไงครับ

  8. #8
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: ทำไงจะส่งข้อมูลผ่าน form ไปยัง file PHP ได้ละครับ

    ถ้าเขาใช้ localhost ก็มานตั้งค่าเป็น on แล้วนี้ครับผมลง apache มานก็ตั้งค่าเป็น on ให้ครับ ถ้าไม่ได้ลองเข้าไปแก้ที่ c:/windows/php.ini แล้วแก้เป็น on ดูครับ มานน่าจะได้นะครับ

Similar Threads

  1. Form Maker Pro v4.3
    By ong40600 in forum PHP,ASP,Javascript, Html
    Replies: 0
    Last Post: 20-06-2008, 06:04 PM
  2. Replies: 2
    Last Post: 06-03-2008, 07:00 PM
  3. Replies: 1
    Last Post: 13-10-2006, 01:36 PM
  4. Form 2D to 3D
    By asylu3 in forum Game Programming & Computer Graphics
    Replies: 0
    Last Post: 11-08-2003, 12:31 AM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •