Random Integer upon Form Submission
Here's exactly what I'm trying to do: I have a form. There are two text fields that someone can enter information into. Once they hit submit (And not before) I want it to generate a random number between 1 and 100 to be included in the e-mail notification.
If you guys need any more information, please don't hesitate to ask, and I'd like to thank you all in advanced for any assistance you can offer me.
This will generate a random number 1-100 and place it in a hidden field:-
Quizmaster: The Italian company Gaggia manufactures machines for making what drink?
Honestly, I feel a little in over my head. lol
Thank you so much for your reply! It's not currently working, it seems, but that may be how I'm getting the e-mails sent to me. Currently, I'm using a free form creator from the web, and it sends me e-mail submissions of the form, but I think that may be creating the issue. I'm researching how to create your own form with e-mail submission using PHP or something, so I'll look into it more. If you have any information on that, it'd be greatly appreciated, but since this top is about the random integer, I'll understand if you don't care to address that issue here.
I figured it'd be easy, since all I wanted was two text fields and the hidden integer, but it's giving me more issues than the much larger application form I made!
Thanks again for your reply.
For a simple PHP form feedback script see:-
Can I ask what is the point of the random integer with such a small range 1-100?
I got it working! Huzzah! Thank you so much for your assistance! You've been a great help, and very prompt.
This form is for a role-playing site that's based on D&D, and I'm making a form for users to submit a log of them crafting something, and their success is based on a roll of a 100 sided die. If it is equal to or lower than their 'skill number', it is successful. Which is why I wanted it hidden until submission. If it was visibile BEFORE submission, people could cheat the system.
|All times are GMT +1. The time now is 03:02 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.