Please tell me if something iswrong with this code

I have very little experience but I think the designer wanted to pass the first and last name to the next page. Can someone tell me if this is true and if there is an syntax errors with this code?

<a href="/contact/?ModelName=<?php echo urlencode($ClientContactNameFirst ." ". $ClientContactNameLast); ?>"><img class=‘img_l’ src="<?=get_bloginfo("wpurl")?>/wp-content/uploads/2011/09/contact-170x100.png" style=‘margin-right:45px’ />

Someones help would be much appreciated.

Sincerely,
Steve Kaplan

Yes, you’re right - code is passing first & last name to a linked page. There is also another piece of php code:
[php]<?=get_bloginfo("wpurl")?>[/php]

Where you use deprecated syntax of php short tags. This may cause problem if using this tag is disabled in your php.ini. Anyway, I’d suggest to change that code to this:
[php]<?php echo get_bloginfo("wpurl") ?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service