Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: Re:forms
#455
lynxtdc (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
forms 3 Years, 1 Month ago Karma: 0  
I am trying to create a simple form using your component (great component by the way!) and need to know how to get the page to post back to itself

<form action="WHAT GOES HERE">

Also...how would I link to the page and pass in extra parameters

Thanks...I am sure you have probably already answered these questions...but I couldn't find them
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#456
lynxtdc (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:forms 3 Years, 1 Month ago Karma: 0  
Figured out my first question...needed to supply the variables as hidden inputs to have them pass

for example

<form action="index.php">
<input type="hidden" name="option" value="com_php">
<input type="hidden" name="Itemid" value="54">
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#457
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:forms 3 Years, 1 Month ago Karma: 10  
Yes, you have to pass them as hidden form fields.

You don't have to hard code the Itemid value, it is always equal to:

$Itemid = JRequest::getParam('Itemid');
or in legacy mode (Joomla1.0):
$Itemid = mosGetParam($_REQUEST, 'Itemid');
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.