Deacon Frost
01-16-2009, 04:22 AM
Ok, I need a script that takes an string of characters, changes it, adds it to an array, and then echoes it.
I can't do it in Javascript, because I don't want the users to see how it's done.
So here are some possible ways of doing it:
1. Is to have the button, and input field for the string. User inputs their string, clicks the button. PHP takes it, changes it a set number of times, and outputs every result on the new page.
while($setnumberoftimes <= $numberoftimes)){ echo $result . "/n" }
I figured something like that would be my best bet?
2. A database. I'd rather not take this route, but I do admit its possibility.
3. Last but not least, if it won't happen, I can go back to doing javascript. Lol. It has to be hidden from the users though, I don't want them seeing the technique which I use to create the multiple strings.
This really shouldn't stump me, as I know it's super easy to do =/.
I can't do it in Javascript, because I don't want the users to see how it's done.
So here are some possible ways of doing it:
1. Is to have the button, and input field for the string. User inputs their string, clicks the button. PHP takes it, changes it a set number of times, and outputs every result on the new page.
while($setnumberoftimes <= $numberoftimes)){ echo $result . "/n" }
I figured something like that would be my best bet?
2. A database. I'd rather not take this route, but I do admit its possibility.
3. Last but not least, if it won't happen, I can go back to doing javascript. Lol. It has to be hidden from the users though, I don't want them seeing the technique which I use to create the multiple strings.
This really shouldn't stump me, as I know it's super easy to do =/.