00tank Posted February 3, 2008 Share Posted February 3, 2008 hi im trying to creat a contest page i have random prizes, 100 of them "congratulations you have won $20", "congratulations you have won $10", "congratulations you have won $10", "congratulations you have won $9", "congratulations you have won $6", "congratulations you have won $6", "congratulations you have won $6", "congratulations you have won $6", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $5", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $4", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $3", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $2", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won $1", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won 50 cents", "congratulations you have won nothing ", -------------------------------------------------------------- i use this for the page <form method="post" action="http://www.whatever.com/mail.php" name="SampleForm"> <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER"> <input name="recipients" value="whatever@whatever.com" type="hidden" /> <input type="hidden" name="subject" value="<?php include('quotes.php'); ?>" /> <table width="987" border="0" cellspacing="5%"> <tr> <td width="563"> <p align="right" class="style1">Please enter your user name:</p> </td> <td width="399"><input type="text" name="realname" /> </td> </tr> --------------------------------------------------------------- from that they enter there user name, it then it sends to me what they won and sends them to a new page telling them what they have won. I have tried using tectites formail script for the security it provides, allowing me to hide my email adress in a .ini file the problem i have is i also want to hide the prize on that initial page, because a user can just refresh , view source and keep doing that until they get the top prize then enter there username how can i pull from those 100 prizes randomly so they arent seen, hide my email address , and get the prize to display on a winner page after they enter username, and also get this sent to me ? Quote Link to comment https://forums.phpfreaks.com/topic/89280-script/ Share on other sites More sharing options...
Stooney Posted February 3, 2008 Share Posted February 3, 2008 Your best bet would be to use a database to store the prizes. Quote Link to comment https://forums.phpfreaks.com/topic/89280-script/#findComment-457155 Share on other sites More sharing options...
00tank Posted February 4, 2008 Author Share Posted February 4, 2008 thx, i kinda realize what has to be done but am unsure how to do it, as my php knowledge is not the best Quote Link to comment https://forums.phpfreaks.com/topic/89280-script/#findComment-457213 Share on other sites More sharing options...
mikefrederick Posted February 4, 2008 Share Posted February 4, 2008 yeah databases are definitely the best way to do it, but it could be done otherwise. you could submit that form to a php page that lists the prizes and selects one randomly and then sends the user off to the next page. this way you could not just view source. Quote Link to comment https://forums.phpfreaks.com/topic/89280-script/#findComment-457215 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.