ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Use a field value in php code?

faber 02 Jul, 2008
Hi🙂

Let's suppose I have a "pwd" text field in my form. I want to send the md5 hash of pwd by email

In Email template i wrote:

<?php echo (md5({pdw})); ?>

but it didn't work

neither

<?php echo (md5($pdw)); ?>

What am I doing wrong? :blush:

Thank you in advance :silly:
GreyHead 02 Jul, 2008
Hi faber,

The sequence isd important here. You might find that
<?php echo (md5('{pdw}')); ?>
will work. Personally I'd play safe and use either:
<?php echo (md5($_POST['pwd'])); ?>
I think that will work. If not, then you'll need to copy the Joomla 1.5.x JGet code over from the Autogenerated code tab.

Bob
faber 03 Jul, 2008
Thank you so much Bob!

Just one note: the text in "code" tags was not delivered in the email🙂
GreyHead 05 Jul, 2008
Hi faber,

No - the Fireboard Forums parser is hightly individual and clearly doesn't care for emails. Actually I think it depends on some clever css that gets stripped out somewhere.

Bob
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com