Issue of that " Ten Step-by-Step Code Samples of FORM API" tutorial

kelvinc - November 21, 2008 - 00:14

I am new to drupal,
and i want to create some forms..
i am a php developer and i dont want to use modules to create my forms, i am trying to learn forms with the 10 step tutorial of FAPI but in some point it says...
____________________
1. Create a file called my_module.module. Cut and paste the first code sample into the my_module.module file (note that it's preferable to omit the closing ?> tag)
2. Enable the "My module" module on the admin/build/modules page.
3. Point your browser to my_module/form to run the sample code
4. For each code sample in the tutorial, completely replace the code in my_module.module with the new code snippet and point your browser to my_module/form to get the newer code working.
____________________

i did the 1 and the 2 but i need help with the 3!! to point where?? i am running my drupal in my localhost/drupal address...which is the right address?
FAPI is an included function of drupal or do i have to download it?
thanks!!

Just repost it cos I have the same issue and it's not been solved.
thanks again

relative to the Drupal root

add1sun - November 21, 2008 - 00:23

You would go to wherever Drupal is installed and then the path from there. So if installed at http://localhost/drupal you would go to http://localhost/drupal/my_module/form.

And yes FAPI is part of Drupal core. You do not need to download anything extra.

Lullabot loves you
--------------------------------------
Join us at Do It With Drupal!
A large scale, curated education event
December 10-12, New Orleans

I tried and that's what I

kelvinc - November 21, 2008 - 03:45

I tried and that's what I got:

"Not Found

The requested URL /drupal/my_module/form was not found on this server."

Any hints?

try clear the menu cache. If

alim418 - November 21, 2008 - 08:00

try clear the menu cache.

If you have devel install go to deve/cache/clear

still not working......"Page

kelvinc - November 24, 2008 - 00:35

still not working......"Page not found"
help plz......
anyone tried the tutorial and sure it's working?

Try to go in modules page

dejuliot - July 26, 2009 - 09:15

Try to go in modules page and activate the new module you created . so in admin ->site building ->modules check the box with my_module to activate the module and then go the browser

New user and still try to know something new

 
 

Drupal is a registered trademark of Dries Buytaert.