This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Username Variable In Form Trouble
#1

I searched the forum and found some old threads, but can't find a working solution. I tried just about all the ways I found mentioned. I'm using the latest version 3

Im trying to pass my $username to the form. But can't figure it out.
In your manual here- http://www.commentics.org/wiki/doku.php?...html_pages it says to put this in the integration code..:

$cmtx_set_name_value = '';
$cmtx_set_email_value = '';
$cmtx_set_website_value = '';
$cmtx_set_town_value = '';
$cmtx_set_country_value = '';

~~~~~~~~~~~

When I put $cmtx_set_name_value = 'John'; it shows John.. But when I put $username it comes up blank.

I am sure my variable is working because it echos just fine right above the form.


~~~~~~~~~~~~~ UPDATE / EDIT~~~~~~~~~~~


Got it...

$cmtx_set_name_value = $username;

I had to remove the ''
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by afoster
21-Aug-2020, 06:47 PM
Last Post by Steven
23-Apr-2019, 09:22 PM
Last Post by Steven
19-Dec-2016, 10:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)