.

Tags:
Forums: 

.

Get latest news from Blognone
By: achidad
UbuntuWindows
on 5 December 2012 - 23:57 #515213

ถ้าเป็น post method ตรงหน้าที่เป็น action รับค่าโดยใช้ $_POST['x'] ถ้าเป็น get ใช้ $_GET['x'] โดย x เป็นชื่อ input ที่คุณตั้งไว้

เสร็จแล้วก็เชื่อมต่อฐานข้อมูล แล้วเอาใส่ได้เลยครับ

ป.ล. php นะครับไม่แน่ใจว่าภาษาอื่นเหมือนกันไหม

By: totiz
ContributoriPhoneAndroidRed Hat
on 6 December 2012 - 10:40 #515333
totiz's picture

ถ้าใช้ Django เรียก request.GET["xxx"], request.POST["xxx"] ได้เลย
http://stackoverflow.com/questions/464040/how-are-post-and-get-variables-handled-in-python

By: paepod on 6 December 2012 - 18:35 #515532

ลองอ่านดูนะครับ Passing Parameters To The Controller