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 Quote 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"; ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.