简体   繁体   中英

How to use php pages in Joomla?

I have 2 php pages, form.php and results.php. The form accepts user data and send to the database with mysql query, the results page retrieves the data for display.

I have installed Joomla as my CMS and it is connected with the database in which the form data is also stored.

How can i use these two pages in joomla?

You are better off developing a component for Joomla as that is the correct way to extend the functionality. Take a look at http://www.component-creator.com it can write all the code for you.

You can place these two pages into your web root directory & those will work. If you want to use configurations defined for Joomla, just include those files into your PHP files.

If you want to place your form within a Joomla article, I would suggest using a form builder extension - there are quite a few in the Joomla extensions directory: http://extensions.joomla.org/extensions/contacts-and-feedback/forms

Using an extension like this will allow you to create your form in the Joomla admin area, publish it to your site, and then accept submissions which could then be emailed to you or viewed in the admin area.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM