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:
So basically, you know how big companies sometimes have their numbers like: "1-800-GET-SOME," or "1-800-call-now" etc. Well normal people have like "623-123-4567" but every number has a possible 3 letter combination with it, and that's what I want to display. EVERY possible combination of letters from the inputted number.
If you have ANY ideas, please let me know!
Thanks.
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.
?>
So basically, you know how big companies sometimes have their numbers like: "1-800-GET-SOME," or "1-800-call-now" etc. Well normal people have like "623-123-4567" but every number has a possible 3 letter combination with it, and that's what I want to display. EVERY possible combination of letters from the inputted number.
If you have ANY ideas, please let me know!
Thanks.








