Có cách nào tương tác với database trong drupal không ?

Em dùng webform để nhập dữ liệu vào. VD em có 2 trường nhập dữ liệu là Name và Phone, nhưng khi nhập trong database, webform lại cho chung vào 1 trường data, chỉ phân biệt qua ID của Name và Phone là 1 và 2. Nhưng cách làm đó không phù hợp với yêu cầu sau này của em
Vậy có cách nào để khi dữ liệu nhập vào trường data của webform thì sẽ tự động nhập vào table mà mình tự tạo không, như thế sẽ chủ động hơn trong việc quản lí database. Nhưng làm sao để làm được như thế, có phải chỉnh sửa module webform hay là tạo 1 file .php để thực hiện yêu cầu của mình ?

Comments

ban can hoc form API

ban can hoc form API

Không thể với webform

Webform hiện tại không thể đáp ứng nhu cầu của bạn. Bạn cần viết module riêng.

P/S: Tôi đi xa mới về, sorry.

Thế Hồng

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.