0

Hi Everyone, I am trying to add a php post variable to one of my output error messages.

The working error message is this -

registerError( $hint, $hint, $error_title, ' + sign not required. International dialing code not required' );

What I would like to do is to display the International Dialing Code in the error message, like +44 is not required.

I have tried

registerError( $hint, $hint, $error_title, ' "' . $dialingCode . '" sign not required. International dialing code not required' );

And Also

registerError( $hint, $hint, $error_title, ' ' . $dialingCode . ' sign not required. International dialing code not required' );

As well as

registerError( $hint, $hint, $error_title, ' $dialingCode sign not required. International dialing code not required' );

But all that is displayed is an empty space, What is it I am doing wrong...

Thanks in advance...

2
Contributors
4
Replies
9
Views
4 Years
Discussion Span
Last Post by minitauros
0

Well, have you assigned $dialingCode to a value? In other words, is there some place in some script that says $dialingCode = $_POST['dialingCode'];? :)

You could check the value of $dialingCode by using var_dump($dialingCode);

0

Yes I do have the var $dialingCode = $_POST['dialingCode'];

I have tried to wrap this around php tags, but still get a blank space...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.