cjenkins08 Posted November 18, 2013 Share Posted November 18, 2013 Hi, Looking for a pretty simple script. Need a drop down box for the user to select the number of text boxes that will appear. Once the text boxes load the user will be able to type their data in each text box and click Randomize. The text box date will be randomized and displayed back to the user. Can someone point me in the direction of a script that's already coded for this. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/284032-php-script-to-randomize-text-boxes/ Share on other sites More sharing options...
AbraCadaver Posted November 18, 2013 Share Posted November 18, 2013 Wouldn't you learn more if you did your own homework? Quote Link to comment https://forums.phpfreaks.com/topic/284032-php-script-to-randomize-text-boxes/#findComment-1458899 Share on other sites More sharing options...
cjenkins08 Posted November 18, 2013 Author Share Posted November 18, 2013 I'm here right now looking for a script that's already made. When I find time I plan on doing the homework, but for now I am looking for an already coded example of this. Quote Link to comment https://forums.phpfreaks.com/topic/284032-php-script-to-randomize-text-boxes/#findComment-1458919 Share on other sites More sharing options...
Ch0cu3r Posted November 19, 2013 Share Posted November 19, 2013 The text box date will be randomized and displayed back to the user. Name the text fields like <input type="text" name="textbox[]" ... > Then you can use shuffle($_POST['textbox']) when the form is submitted to randomize the submitted values. Quote Link to comment https://forums.phpfreaks.com/topic/284032-php-script-to-randomize-text-boxes/#findComment-1458945 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.