FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » Newbie Question - Ignore missing ? links in URL
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Newbie Question - Ignore missing ? links in URL [message #34258 is a reply to message #33566] Mon, 16 October 2006 13:08 Go to previous message
sBForum is currently offline  sBForum   Jordan
Messages: 5
Registered: October 2006
Location: Jordan
Karma:
Junior Member

easily , put this :

$ph = (isset($_GET["phone"] ? $_GET["phone"] : 0);
echo $ph;


if it's not set in the URL address it'll make the $ph value equals zero . u can replace 0 with '' to make it empty when it's not identified ..

anyway , this is the way i use , there r more methods as i think but this is good enough for this use .. Very Happy Very Happy

anything else ?

regards,
sBForum Shocked
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: how to add javascript in php
Next Topic: need help. please!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 01 15:57:12 GMT 2024

Total time taken to generate the page: 0.03895 seconds