No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
PHP <?php $phone = trim($_POST['phone']); if(!is_numeric($phone)) $alert = 'invalid phone number'; ?> Javascript <input type="text" id="phone" /><br /> <button type="button" id="btn_phone" onclick="control()"></button> <script> function IsNumeric(phone) { return (phone - 0) == phone && phone.length > 0; } function control() { var phone = document.getElementById('phone'); var value = phone.value.replace(/^\s+|\s+$/g,''); phone.value = …
<?php ob_start(); session_start(); ?> and file encoding UTF8 without BOM()
$string_typed=$_GET['name']; //name is the id of text area $replaced=str_replace("\n\r","\n",$string_typed); //i want to replace new lines $exploded_string = explode("\n", $replaced); // the replaced string to insert into the array. $print_string=array_unique($exploded_string ); // to remove the dublicated lines foreach($aprint_string as $w){ //printig each of them. echo $w ."<br>"; } $replaced=str_replace("\n\r","\n",$string_typed); "\n\r" -> …
<?php echo stripslashes($esrow_off['fld_company_url'])?>
The End.