username from sent argument
3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 9, 2011 (RSS)
By ikanizaj - April 7, 2011
I have one page that sends ?createdByUserNum argument.
and am having trouble picking up that argument to display username as title on next page.
I have tried it like this :
and then it should go something like this, but I don't know what to write where the stars are (it should be that transfered number):
and am having trouble picking up that argument to display username as title on next page.
I have tried it like this :
list($accountsRecords, $accountsMetaData) = getRecords(array(
'tableName' => 'accounts',
'allowSearch' => false,
));
and then it should go something like this, but I don't know what to write where the stars are (it should be that transfered number):
<?php foreach ($accountsRecords as $userRecord): ?>
<?php if ($userRecord['num'] == *******): ?>
<title><?php echo $userRecord['fullname'] ?></title>
<?php endif ?>
<?php endforeach ?>
--
Igor Kani¾aj
Igor Kani¾aj
Re: [ikanizaj] username from sent argument
By robin - April 7, 2011
Hey Igor,
Any argument that a page receives is automatically placed in the $_REQUEST variable. A line that looks like this should work for you:
Hope that helps,
Robin
Any argument that a page receives is automatically placed in the $_REQUEST variable. A line that looks like this should work for you:
<?php if ($userRecord['num'] == $_REQUEST['createdByUserNum']): ?>
Hope that helps,
Robin
Robin
Programmer
interactivetools.com
Programmer
interactivetools.com
Re: [robin] username from sent argument
By ikanizaj - April 9, 2011
That is it. Thanks
--
Igor Kani¾aj
Igor Kani¾aj