how to check alphanumeric in php
ctype_alnum(stripslashes($data[‘title’]))
ctype_alnum(stripslashes($data[‘title’]))
<?php $vidID=”qCwAitjixMo”; //http://www.youtube.com/watch?v=voNEBqRZmBc $url = “http://gdata.youtube.com/feeds/api/videos/”. $vidID; $doc = new DOMDocument; $doc->load($url); $title = $doc->getElementsByTagName(“title”)->item(0)->nodeValue; $duration = $doc->getElementsByTagName(‘duration’)->item(0)->getAttribute(‘seconds’); print “TITLE: “.$title.”<br />”; print “Duration: “.$duration .”<br />”; ?>
$.ajax({type:”POST”,url:”design/teetypeajax”,data:{id:val},success:function(response){alert(response);}});
KOLKATA: Capturing the public’s imagination for three decades through her ethereal beauty and intense celluloid performance, Suchitra Sen symbolized the golden age of Bengali cinema with memorable films like ‘Agnipariksha’, ‘Devdas’ and ‘Saat Paake Bandha’. The doe-eyed beauty turned a recluse after bidding adieu to the world of films in the late seventies and was often compared…
<input type=”text” onKeyUp=”getkeycode(event)”> <script> function getkeycode(eventhandler) { alert(“Key Code Is :”+eventhandler.keyCode); } </script> You may also use this sort of function to disable certain keys, by adding a void(0) in the function as shown. This essentially tells the page to cancel the last event, e.g. the pressing of that certain key. In the example below,…
Over the years Nelson Mandela has received thousands of gifts, awards and honours from around the world. He has shared these with his family, friends and charitable organisations. Substantial collections were donated to the South African state (his 1994-1999 Presidential Collection) and the Nelson Mandela Centre of Memory. Not surprisingly, given Mandela’s love of reading,…