A little Problem with language file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
getathaivisa
Forum Newbie
Posts: 1
Joined: Mon Sep 27, 2010 7:54 pm

A little Problem with language file

Post by getathaivisa »

Hi.

I am pretty new to coding and i have been doing a bit of repair work to one of my websites that was coded by someone else.

I have a multi-language portal, and in the english file there is a text string that displays on the page for registration success. The terxt string itself should be showing the email address just used to sign up...see below.

$lang[183]['title']="Thank you, your form has been submitted successfully. We have sent an email. to <".$data['email']."> To activate your account. Please check your junk or spam folder if it is not in your inbox... sometimes your email provider will read the activation email as spam, and put it into your junk folder. To prevent this from happening, please add us to your contacts list.";

this is what is showing on the actual frontend page

Thank you, your form has been submitted successfully. We have sent an email to <> To activate your account. Please check your junk or spam folder if it is not in your inbox... sometimes your email provider will read the activation email as spam, and put it into your junk folder. To prevent this from happening, please add us to your contacts list.

What would you suggest was the problem?

Thanks in advance
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: A little Problem with language file

Post by Jonah Bron »

From what I can see, the code you gave has perfect syntax. The only thing possible if that's true is if $data['email'] is empty or doesn't exist. Try echoing it out by itself for debugging.
Post Reply