Joomla 1.0 How do I include username and/or email in form

webface 25 Sep, 2008
First of all, I'd like to salute chronoENGINE for making this great component.

Beign a flash developer, my way of making forms before was to make standalone forms in flash with a custom form submission code that i'd stick on the joomla page and on the server. My Borg colleagues agree this is inefficient.🙄

I have fooled around with the component and I am highly impressed with its features and functionality.What i'm trying to figure out now is how to add a logged in user's USERNAME or EMAIL to my forms so when i recieve the form data, I can match it up to the right user and follow up with them e.t.c.

The example I found on this forum are for Joomla 1.5, however I still use Joomla 1.0 and these code snippets wont work for me.

How do I go about doing this in Joomla 1.0 ?

Please dont respond by asking me to search the forum. I have and I couldnt find what I was looking for.

regards,

webfaCe
webface 25 Sep, 2008
ok great that works in displaying the name above my form. So then if i drop those vars in hidden form fields, chronoforms should send it along with the rest of the form data. The theory is solid. Lets test er out.arrow-right

brb
webfaCe
webface 25 Sep, 2008
Tried it out. Worked like a charm. Exactly what I wanted.
Thanks Max

For others here is the code I used


<?php
global $my;
?>
Name: <?php echo  $my->name; ?><br />
Email: <?php echo  $my->email; ?>

<input name="Username" type="hidden" value="<?php echo  $my->name; ?>" />
<input name="Useremail" type="hidden" value="<?php echo  $my->email; ?>" />



webfaCe
Max_admin 25 Sep, 2008
great!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.