Hey Guys! Help me! Simple HTML code if possible!

Discussion in 'Web Programming' started by shamwOw, Oct 14, 2009.

Hey Guys! Help me! Simple HTML code if possible!
  1. Unread #1 - Oct 14, 2009 at 7:34 PM
  2. shamwOw
    Joined:
    Sep 10, 2009
    Posts:
    8
    Referrals:
    0
    Sythe Gold:
    0

    shamwOw Newcomer
    Banned

    Hey Guys! Help me! Simple HTML code if possible!

    Hey. So, i've been toying around with HTML trying to remake other peoples codes. So what i'm asking is, can you make a simple program where there is a text bubble that people type into, then when they press submit, the program generates a random answer of Yes or No or something similar. Is that possible?

    i.e. Step 1) User Types Question: Do you like cats?
    Step 2) User Then Presses Submit.
    Step 3) Program Randomly Generates A Yes Or No Answer To Display For The User
    Step 4) Program Displays The Randomly Generated Answer.

    ** If you understand what I mean, try to help me! Thanks. shamwOw :)
     
  3. Unread #2 - Nov 16, 2009 at 3:15 PM
  4. harrylloyd1992
    Joined:
    Aug 18, 2007
    Posts:
    661
    Referrals:
    2
    Sythe Gold:
    0

    harrylloyd1992 Apprentice
    Banned

    Hey Guys! Help me! Simple HTML code if possible!

    You'd be better off creating it in Visual Basic 2008. Vb8 because of the simplicity and encorporating it into your website.
     
  5. Unread #3 - Nov 17, 2009 at 4:01 AM
  6. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    Hey Guys! Help me! Simple HTML code if possible!

    Javascript would be your best bet.

    Code:
    <script type="text/javascript">
    function Question () {
        var randomnumber=Math.floor(Math.random()*2);
        if (randomnumber == 1) {
            alert("Yes");
        } else {
            alert("No");
        }    
        document.getElementById("QuestionText").value = "";
    }
    </script>
        <input type="text" id="QuestionText"></input>
        <button type="button" onclick="javascript:Question();">Click Me!</button>
    
     
  7. Unread #4 - Nov 17, 2009 at 4:04 AM
  8. frozenrain
    Joined:
    Oct 8, 2009
    Posts:
    467
    Referrals:
    0
    Sythe Gold:
    0

    frozenrain Forum Addict
    Banned

    Hey Guys! Help me! Simple HTML code if possible!

    Visual basic is very easy to use if you want to make such a programme. I remember trying it before.
     
  9. Unread #5 - Nov 17, 2009 at 10:17 AM
  10. Odep
    Joined:
    Nov 17, 2009
    Posts:
    14
    Referrals:
    0
    Sythe Gold:
    0

    Odep Newcomer
    Banned

    Hey Guys! Help me! Simple HTML code if possible!

    What's up with these retards suggesting VB in the web programming board?

    And harrylloyd1992, how is VB8 so easily incorporated into sites?

    geez, this is depressing...
     
  11. Unread #6 - Nov 17, 2009 at 10:29 AM
  12. Jazz00006
    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0

    Jazz00006 Apprentice
    Visual Basic Programmers

    Hey Guys! Help me! Simple HTML code if possible!

    ASP.NET? You really can code in VB and have it as a website. You just need an IIS server, and I haven't seen one. (Although I haven't looked hard because I don't need one)
     
  13. Unread #7 - Nov 19, 2009 at 1:18 PM
  14. Jervjitsu
    Joined:
    Nov 15, 2009
    Posts:
    7
    Referrals:
    0
    Sythe Gold:
    0

    Jervjitsu Newcomer

    Hey Guys! Help me! Simple HTML code if possible!

    Extremlly simple in PHP, a standard post form with a conditional based on the result.

    Just google "PHP Form Post Example".
     
< A question regarding dropdown menus and carry overs | PHP/Knowledgeable Web Programmer >

Users viewing this thread
1 guest


 
 
Adblock breaks this site