The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: problem with module
PostPosted: Wed May 30, 2012 11:48 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Mar 02, 2012 5:27 pm
Posts: 2
this is my first project with joomla
it's module and component

i have a problem with module in action code i want to post to component file

Code:
<form action="component/com_sample/sample.php" method="post">
  <input type="text"   id="num"><input type="submit">
</form>

how could to access to this dir ?????


Top
 Profile  
 
 Post subject: Re: problem with module
PostPosted: Wed May 30, 2012 1:35 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Mar 02, 2012 5:27 pm
Posts: 2
i have been found the solution

Code:
<form action="<?php echo JRoute::_('index.php?option=com_Maintenance&Maincode='.(int) $this->item->Maincode); ?>"
      method="post" name="adminForm" id="helloworld-form" class="form-validate">
   <fieldset class="adminform">
               <?php if (!$field->hidden): ?>
            <?php echo $field->label; ?>
         <?php endif; ?>
         <?php echo $field->input; ?>
      <input type="text" name="maincode" id="maincode">
   </fieldset>
   </form>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: Exabot [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group