| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | Phone Number Combination Script! I'm looking for a script for a potential site I might be making. I really only need an example code. This is what the script would look like somewhat: Code: <form action="" method="POST">
Your Number: <input type="text" name="number">
<submit>
</form>
<?php
function get_all_combos($number) {
$number = $number;
some function here to get all possible combinations out of each number.
echo"$all_combos";
}
$number = $_POST['number'];
get_all_combos($number); // will output all combonations of the numbers.
?>
If you have ANY ideas, please let me know! Thanks. |
| |
| | #2 (permalink) |
| NamePros Regular | Just assign the letters to a number, then for a for loop while outputting the combinations. Pseudocode: PHP Code: then break the phone number down by numeral and do each for loop accordingly. This is a pretty easy script to do. Be warned though, if you want every possible combo, including area code, then the number of combinations will be HUGE. -Bob
__________________ The mass purge has begun. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Huge Script Pack for $5 with Resale Rights | dsforsaken | Scripts For Sale | 32 | 12-03-2005 08:46 PM |
| Phone Number Domains | dnslife | Domain Name Discussion | 3 | 12-14-2003 08:38 AM |
| Domain Rating Script for Sale : $200.00 - only 10 scripts will be sold | fonzerelli_79 | Scripts For Sale | 3 | 08-31-2003 08:41 AM |