Hi
Sorry to post this if it's obvious. Have spent an afternoon looking through the forums but no luck!
I am using Profile plugin to pull in some data from my own table called xyz. I am also populating some form fields with &JFactory::getUser. This works fine, displaying both the data from the xyz table, and the Joomla User name.
When I submit the form, I want it to update (not insert a new row) my xyz table.
Reading the forums, I thought the way to do this was to change the profile plugin setting
Editable -> On
However when i do this, the &JFactory::getUser becomes blank. So then I changed
Evalute -> On
but it makes no difference - field thats supposed to display &JFactory::getUser still blank.
Here's the relavant part of my form HTML that is supposed to pull in the username:
This part pulls in the data from the xyz table
Many thanks for any help.
Rex
Sorry to post this if it's obvious. Have spent an afternoon looking through the forums but no luck!
I am using Profile plugin to pull in some data from my own table called xyz. I am also populating some form fields with &JFactory::getUser. This works fine, displaying both the data from the xyz table, and the Joomla User name.
When I submit the form, I want it to update (not insert a new row) my xyz table.
Reading the forums, I thought the way to do this was to change the profile plugin setting
Editable -> On
However when i do this, the &JFactory::getUser becomes blank. So then I changed
Evalute -> On
but it makes no difference - field thats supposed to display &JFactory::getUser still blank.
Here's the relavant part of my form HTML that is supposed to pull in the username:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Email Address</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="text_2" name="text_2" type="text" value="<?php $user = &JFactory::getUser();echo $user->email;?>" readonly="readonly"/>
</div>
<div class="cfclear"> </div>
</div>
This part pulls in the data from the xyz table
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Domain Name</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="text_5" name="domain_name" type="text" value="{domain_name}" readonly="readonly"/>
</div>
<div class="cfclear"> </div>
</div>
Many thanks for any help.
Rex