home > content management systems (CMS) > php nuke

How to Add Email Forms to PHP Nuke

PHP Nuke is a powerful content management system that is quite easy to add email forms to. The steps for doing this are outlined below.

1. Create Your Form HTML

The first step in integrating an email form into your website is to build the actual HTML code for the form. The easiest and quickest way to create the form code is to use myContactForm.com.

myContactForm.com features a free online wizard that steps you through the entire form building process. myContactForm.com has just about any feature you could ask for including auto-responders, CAPTCHA, file attachements, CSS styling, data exports (Excel, CSV, Text, HTML, etc.), pre-made templates, and much more.

Click Here to read a tutorial on creating the form HTML using myContactForm.com.

2. Login to the PHP Nuke Administration Area

a. Go to your PHP Nuke web site and login to the administration panel.

Login to PHP Nuke

3. Modify the config.php File to Allow for iframe

a. Open the config.php file in the root directory of your PHP Nuke installation.

b. Look for the line that looks like this:

Look for Allowable HTML Config Item

c. Add iframe to the $AllowableHTML line as shown below:

Insert iframe to the allowed html

d. Re-upload the config.php file to your server

4. Create a News Item and Embed the Form HTML

Below we are outlining the steps for adding an email form to a new news item. Note that you could use a very similar process to add an email form to an already existing item.

a. Click Submit News

Click Submit News Item

b. Click Edit HTML Source to insert your form code

Click the Edit HTML Source button

e. Open a new browsing window and navigate to myContactForm.com. Login to myContactForm.com

f. Click the Xtras Button next to your form

Click the Xtras Button

g. Click the Hosted Forms button

Click the Hosted Forms Button

h. Click the Enable Hosted Form button

Click the Enable Hosted Form Button

i. Select and Copy (CTRL+C or Right Click and Select Copy) the URL of the hosted form that is provided.

Copy the URL of the Hosted Form

j. Go back to the open PHP Nuke browser window. Enter into the Edit HTML window the following code:

<iframe src="myhostedformurl"></iframe>

Replace "myhostedformurl" with the URL of the hosted form that you copied above.

Insert an Iframe containing your form

d. Click the Update button

Click the Update Button

4. Test Your Form

Open a web browser and go to the web page containing your form. Fill out the form and press the submit button to test it.

Common Problems Encountered by Users:

I submit the form and get a form location error.

If you are using myContactForm.com, you will need to login and make sure that you've set the Form Location setting to the proper URL for your form.

a. Login to myContactForm.com

b. Click the Edit Button

c. Click the Basic Form Information Button

d. Enter all variations of the URL where the form will appear. Typically this is the full URL of your web form with and without the www subdomain. You can also use wildcards (*) in this setting. For examples using http://www.mydomain.com/* would allow the form to be placed on any page uploaded to mydomain.com.

e. Click