Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #44.3K
~3K People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for james6754

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 = …

Member Avatar for stekmil
0
2K
Member Avatar for Mike_danvers

<?php ob_start(); session_start(); ?> and file encoding UTF8 without BOM()

Member Avatar for Member #120589
0
157
Member Avatar for nstrazimiri

$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" -> …

Member Avatar for Member #120589
0
549
Member Avatar for kingkong142
Member Avatar for stekmil
0
309

The End.