|
 |
|
สร้างฟอร์มอัตโนมัติ - ทำเครื่องมือช่วยในการสร้างฟอร์ม โดยผ่านเว็บไซต์อะครับ |
|
 |
|
|
 |
 |
|
โอ๊ว คงจะยากน่าดูครับ ลองศึกษาพวก Open Source น่ะครับ จะได้แนวคิดเยอะเลยครับ
|
 |
 |
 |
 |
Date :
2009-03-29 21:25:43 |
By :
webmaster |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมเคยทำแต่ textbox กะ textarea
checkbox กะ radio นี่คงต้องคิดอีก
ใช้วิธีเขียนไฟล์เอาครับ ระบุ ประเภท, ชื่อ element, ข้อความข้างหน้า แล้วเปิดไฟล์ php มาเขียนไว้ในรูปแบบ array ครับ เวลาใช้ก็ include ไฟล์นี้เข้าไป แล้ววนลูปสร้างฟอร์มเอา
|
 |
 |
 |
 |
Date :
2009-03-30 11:05:55 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กำลังคิดอยากจะทำอย่างนี้อยู่พอดีเลย
มาเก็บแนวคิดครับ
|
 |
 |
 |
 |
Date :
2009-03-30 20:39:44 |
By :
ttong |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มีตัวอย่างการทำบ้างป่าวครับ หรือให้โค้ทฟรี จะดีครับ จะได้เอาแนวไปดัดแปลงต่อครับ
|
 |
 |
 |
 |
Date :
2009-06-03 22:53:13 |
By :
mangbit |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมงมทำมาเป็นอาทิตละคับหาทางสว่งให้ที
|
 |
 |
 |
 |
Date :
2009-06-13 03:52:44 |
By :
arkapoom |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันก็อาจทำได้นะครับ ทำคลาสขึ้นมา แต่อาจจะมีรูปแบบไม่เยอะตามแต่การออกแบบของคุณเอง รู้สึกว่า ใน rails ก็มีแบบนี้เหมือนกัน แบบสร้างอัตโนมัตินี่แหละ
เช่น
$form = new Form('form1');
$username = new FormElement('text', 'uname');
$userpassword = new FormElement('password', 'upass');
$email = new FormElement('text', 'email');
$news = new FormElement( 'radio', 'recieve', array('yes', 'no') );
$submit = new FormElement('submit', 'สมัครสมาชิก')
$form->add($username, 'username');
$form->add($userpassword, 'password');
$form->add($email, 'email');
$form->add($news, 'รับข่าวสาร ?');
$form->add($submit);
$form->render();
ประมาณนี้คงได้นะครับ 
|
 |
 |
 |
 |
Date :
2009-06-13 08:27:14 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|