Jump to content

Recommended Posts

Доброго времени суток

 

Пишу проверку переменной тернарным оператором все по идее правильно сделал но вылетает ошибка 500, какой то бред  :?

сама конструкция выглядит вот так 

<input type="text" name="yandex_center_one"  value="<?php (isset($yandex_center_one)) ? echo $yandex_center_one : ''; ?>" >

Что я не так сделал  ? 

 

PS// данные получаю из settings 

Share this post


Link to post
Share on other sites

<input type="text" name="yandex_center_one" value="<?php  echo (isset($yandex_center_one)) ? $yandex_center_one : ''; ?>" >

 

типа того

Share this post


Link to post
Share on other sites
<input type="text" name="yandex_center_one"  value="<?php echo isset($yandex_center_one) ? $yandex_center_one : ''; ?>" />

Share this post


Link to post
Share on other sites

блин все то не там написал echo, СПАСИБО !

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.