can not get link to open second php file in component

A multipurpose module, plugin and component

can not get link to open second php file in component

New postby rockie12_us » Tue Jun 14, 2011 5:22 am

Hi
I have created a component and it opens my first php file just fine.

I have a link in this php file to a second php file. When I click on the link, it opens the new php file outside the area of the component. It just opens it like it was directly navigated to. If I put in the defined('_JEXEC') or die('Direct Access to this location is not allowed.'); it shows the Direct access.... message instead of the page

How do I get it to open the second php file in the component?

Thanks in advance for any assistance
rockie12_us
 
Posts: 1
Joined: Tue Jun 14, 2011 5:16 am

Re: can not get link to open second php file in component

New postby Simon » Sat Jul 16, 2011 10:57 pm

Hi

What your second php file does? Is it other joomla page, or custom file? (what is the path of second file?)
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: can not get link to open second php file in component

New postby levauy » Tue Jul 26, 2011 9:44 pm

Hi syom777

I have a similar question, however mine is a postback to the same PHP page. The first time the page loads, it shows a search box and submit button. On submit i want to post back to the same page which will display results from a database based on the search. However, the page reloads the entire web page as if it were an external link. What do i need in the code to make it remain in the module position that the original page (first load) inside the Joomla site?

Thanks,

Grant
levauy
 
Posts: 1
Joined: Tue Jul 26, 2011 9:34 pm

Re: can not get link to open second php file in component

New postby Simon » Wed Jul 27, 2011 12:19 am

Hi

Could you remove all script from jumi module and put simple form.
Code: Select all
<form action="" method="post">
<input type="submit" value="submit">
</form>

What happens when you submit the form?
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: can not get link to open second php file in component

New postby maxtito12 » Wed Sep 14, 2011 9:55 pm

Did any one find the way to link a second php file?

My first php code gets the form from the user, and the second saves the data into my data base.
maxtito12
 
Posts: 2
Joined: Wed Sep 14, 2011 9:28 pm


Return to Jumi

Who is online

Users browsing this forum: No registered users and 7 guests

cron