Jump to content
xisto Community

coolcat50

Members
  • Content Count

    303
  • Joined

  • Last visited

Posts posted by coolcat50


  1. Ok, I have written a PHP Lottery Script that will e-mail me when someone wins the lottery. I will make it more advanced as I learn more such as use a MySQL database and automate it, but I need to start with the basic design.Here is my current code.

    <?php//Add the code in body tags$lottonum="lotto_num_here";$nument="$_REQUEST['nument']";$name="$_REQUEST['name'];if ($lottonum == $nument){echo "Thank you! You have won the grand prize! An email has been sent to notify the admins.";mail("email@here.com" , "Subject: Lottery Winner $name" , "$name has just won the lottery. Please update his profile.");}else{?><form method="post"><input type="text" value="Name" name="name" /><br /><input type="text" value="#####" name="nument" /><br /><input type="submit" value="Submit" /></form><?php}?>

    The script is designed to set up a form that will act like a password script and if you submit the correct number, the email is sent informing me of their winning the prize. The prize will most likely be member promotions on the forum or something like that.Also, any help on how to automate it and use a MySQL database will be greatly appreciated. Well please help with the script. Thank you.


  2. Look through the hourglassYou see sands fall downYou look up into the skyWatch the stars shine so brightIs this what you thought the world would be(Chorus)You see, you cryWhy is this world dyin'You hear, you feelWhy is this pain so realThis world is falling downThrough the hourglassTime is almost upSitting in this roomYou lie here waitingThinking of the worldAnd how it will be in the futureYou never believedThat this was happeningWell I'm sorry to say(Chorus)Stop your cryin'It's not helpin'Stop your worryin'It's gonna get better someday!You'll seeYou'll seeYou'll see that it will get betterAnd you'll be able to lie in peaceFor one last time


  3. Well, I need a semi-cheap laptop since I don't have a job nor could I get one. I must rely off my upcoming birthday and following Christmas to pay for the laptop. I was thinking of getting one off Ebay or a used store instead of a new one specifically because of Vista's high need for RAM and it's infamy. It used to not be able to run Guild Wars, but I do not know if currently does. My Halo playing will mostly be online, but I will be doing campaign also. Note that I have Halo 1 not 2 on PC. Well, I also plan on using graphics editing programs like GIMP and most likely a compiler for C and C++. I think I will get XP and upgrade to Vista once it is all fixed up. I know Bill Gates is trying to give himself a monopoly so Vista might become worse. I myself am not a particuraly "advanced" user, but I'm not a beginner either. Well, there is a little more background info on my OS needs.


  4. Is there any possible way using XML and PHP that you could create a text editor that can save files in your documents and also make a hotlink to your site. Much like a online notepad. I would like to know how I would make on of these and whether or not MySQL or XML would be a good language to use for storing data.My current idea deals with only PHP and iframes. It really isn't an editor though, more like a notes page. I would like a way though to be able to create a database with info stored from the PHP script which and be able to save to your hard drive.Also, is it possible to use a combination of Javascript and PHP to create a scientfic calculator.Thank you for reading.


  5. I currently have taught myself PHP using w3schools and I am at the ending of the beginner tutorials. Should I go on to the Advance tutorials or try to learn some more PHP from another site or what.Also, using CPanel on the Wii, how would I link a PHP file to a MySQL database for a comment system. A example code would be sweet. I myself have written a code on paper, but it seems like crap.Thank you.


  6. I basically have created a language that acts as HTML for XML documents. It is a XML formatting language similar to HTML formatting with the ability to customize it. I use CSS to give custom XML tags formatting properties. I have not tested it and installation of the language is complicated. Should I test it and distribute it or should I find another way to do something like this. Thank you.P.S. I may post a full tutorial on it here.


  7. I'm currently saving up for a laptop for several purposes. One of these is gaming and another is graphics. I can't decide whether to go used and get XP or new with Vista. The main games I'll be playing are Guild Wars and Halo. I have heard that Vista is horrible and eats up a crapload of memory. Well what should I do.


  8. I have written a simple lottery script that I want to manually use with my InvisionPlus forum and main web site. Currently I have a page with the lottery script on my main page that can be accessed from a redirection forum on my forums. The script creates a button on the lottery page of my main site that creates a number entry prompt that acts as a password field. If the lotto number is correct, then my user is taken to my winners forum where they post they won. The purpose of the lotto is for members to win account upgrades. My script though is not working. Here is the script. I have taken out certain info though.My script

    <script type="text/javascript">function lotto1(){ var lottoentry; var lottonum="12345"; lottoentry=prompt("Enter your lotto number here.");if (lottoentry == lottonum)  alert("You have won! Click to submit your winnings.");  alert("Forum pass is *******.");  //I need a redirect code here.;else  alert("Sorry, try again!");  //Another redirect code.;}</script>

    My execution form

    <form><input type="button" name="lotto" value="Click to Play!" onClick="lotto1()"></form>


  9. I want to create my own e-mail form for my site and I don't quite know if JavaScript or PHP is required. I use my Nintendo Wii to manage my sites so I only can use what my webhost allows. I am using Angelfire for my main site and InvisionPlus for my forums. I'm planning on switching to Xisto for my main site. Well here is my current code. Please tell me what I need to change.

    <form action="mailto:EMAIL" method="post"><input type="text" value="From"><br /><input type="text" value="Subject"><br /><textarea cols="5" rows="10" wrap="true">Message</textarea><br /><input type="submit" value="Send">  <input type="reset" value="Reset"></form>

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.