kiowa_jackson Posted January 27, 2008 Share Posted January 27, 2008 I'm currently using something like <h1>Welcome To My Page About <?php echo urldecode($_GET['ins']); ?> and I just set $ins in links to whatever I want to be displayed in the headline. Is there a way to have default text displayed for when $ins is not set? So that everyone sees something....? Thanks Link to comment https://forums.phpfreaks.com/topic/88082-solved-display-default-text-when-variable-not-set/ Share on other sites More sharing options...
pocobueno1388 Posted January 27, 2008 Share Posted January 27, 2008 <h1>Welcome To My Page About <?php if(!empty($_GET['ins'])) echo urldecode($_GET['ins']); else echo "Something"; ?> Link to comment https://forums.phpfreaks.com/topic/88082-solved-display-default-text-when-variable-not-set/#findComment-450623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.