I'm having trouble in an updated form to fill with an array of user names. To tell the correct in action, please go to: [Deleted link]
As you can see that when the page is loading, there is an option for "mortgage consultant" Has been loaded before the name. The name of this username is associated with the I'm upgrading this site to Joomla 2.5 and when I copy the drop-down menu to the bit code on this bit code, this list does not raise: < Pre> This is copied from the 1.5 Joomla site example, but as I said before it is not sending the value. You can see an example of this output here: [deleted link] Any ideas how can I select values after submitting the button? Apart from this, could it be that I missed another area related to this area? Thank you. After viewing your code, if it is not a typo, then I think it should be Your problem area - Using Let me know if this is a mistake or not. agentId value that appears in the URL.
& lt; Tr & gt; & Lt; Td> & Lt ;? Php echo JText :: _ ('RSM_FORM_TXT_AGENT'); ? & Gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Select name = "userId" id = "userId" & gt; & Lt; Option value = "" & lt ;? Php if ($ row-> userId == "") {echo "selected = 'selected' ';}? & Gt; & lt; / option & gt; php foreach ($ agent $ Agent) {$ agent = $ database-> loadObjectList ();? & Gt; & lt; option value = '& lt ;? php echo $ agent- & gt; id?? & Gt;' & lt ;; Php if ($ _GET ['agentId'] == $ agent-> ID) {echo "selected = 'selected';}? & Gt; & Gt; & Lt ;? Php echo $ agent- & gt; first name; ? & Gt; & Lt ;? Php echo $ agent- & gt; Lastname; ? & Gt; & Lt; / Options & gt; & Lt ;? Php}? & Gt; & Lt; / Select & gt; & Lt; / TD & gt; & Lt; / TR & gt;
& lt ;? Php foreach ($ agent as agent) {$ agents = $ database-> loadObjectList ();
$ agents in your code, you can now
$ agent- & gt; Fetching array from id; ???
Comments
Post a Comment