Hi there..
I'm new to drupal and need some help with a module development.
We currently use drupal as CMS to publish news, but now we want to use it to interact with some aplications..
We have a few forms, that shows information from a mysql table and allows to modiffy some fields.
1.- It's there any way to take the php code of that forms and make a module of it?
2.- I tried to make a page and activate the php filter, it worked, and show me the full form page. But every time a i push the save button of the form or any object that makes changes on the pages, drupal takes me to home page. Any ideas about how can i avoid that?
3.- Recently i came across phpMyEdit, excellent application to make on the fly php forms based on mysql database.
It's there any projectworking on the same functionallity but oriented to make drupal modules as output?
4.- Can anyone point me to any netbeans-drupal development material (Besides the matrial existing about the pluggin)
Guess that's all for now.
Thanks for any help you provide.
Comments
1) yes - you take the code,
1) yes - you take the code, and make a module of it! I think you were looking for some sort of automated method though, and I would say no, there isn't anything like that.
2) You need to use the Forms API to define a form, and drupal_get_form() if you want forms to work in Drupal. You can't just drop a form in and have it work - for security reasons it is designed not to do that. When using forms in Drupal, it caches the form on the server before sending it to the browser. Then when values are sent back to the server, it checks the submitted values to confirm they matched the form elements on the form that was sent to the browser. If they don't, it discards (or rather ignores) the submitted data. This is to prevent malicious users from altering forms and submitting them, tricking the server into accepting data it shouldn't receive. So if you just drop a form in, the form is not cached on the server, and as a result, Drupal just ignores anything you've sent.
3) Not that I know of.
4) I can't help you with that.
Contact me to contract me for D7 -> D10/11 migrations.