Solved

How do I use PHP code inside a Joomla 1.5 article?

Posted on 2011-03-23
6
364 Views
Last Modified: 2012-05-11
I have the following code inside a Joomla article that contains a web form. I am submitting the form to itself using a POST method. However I believe the PHP code is never checked because the echo statement does not appear on the page.
<?php

if (array_key_exists('_submit_check', $_POST)) {

echo "inside if statement";
include_once "/maze/custom/myform.php";
}
?>
 

Open in new window


Can one of the experts please help me get this form to execute properly?

Thank you!
0
Comment
Question by:timburkart
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 13

Expert Comment

by:joomla_php
ID: 35204681
0
 

Author Comment

by:timburkart
ID: 35204705
Hello joomla_php!

Is this the only technique available to me? Does it matter which module position I use in the article? see http://zclientdev.net/maze/free-trial.html

Thank you,
Tim
0
 

Author Comment

by:timburkart
ID: 35204709
Correction, here is the right link - http://zclientdev.net/maze/free-trials.html
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Accepted Solution

by:
joomla_php earned 500 total points
ID: 35209522
No there are lots of choices, that happens to be my favorite.
You can include it at any module position.
Just make sure your php is correct!
0
 
LVL 13

Expert Comment

by:joomla_php
ID: 35209534
Hey cool product. I need something like that. Let me know when it's live?
0
 

Author Closing Comment

by:timburkart
ID: 35209632
Thank you very much!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Change Joomla Logo Graphic This tutorial goes over the steps to change the Joomla Logo in the template you are using. For this example we will be assuming you are using the rhuk_milkyway Joomla Template which is installed by default. You will …
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question