1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Submit button

Discussion in 'HTML & Website Design' started by Woutern, Apr 25, 2013.

  1. #1
    Hey.

    I'm gonna make a forum moderator application where you enter stuff and it will be reviewed by an administrator and eventually be accepted (or not). But i want it to look kinda "pro", and make its own page for it.
    It will be like a quiz where you enter stuff etc. But how do i make it so if i put a submit button it will send an e-mail with this information, if it is possible at all? Or do i need a kind of bot?
     
    Woutern, Apr 25, 2013 IP
  2. frankmust

    frankmust Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #2
    you could do it with a simple php form no? Do you have some coding skill?
     
    frankmust, Apr 25, 2013 IP
  3. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #3
    you can do it with php programming very easy.
     
    creativewebmaster, Apr 26, 2013 IP
  4. Hashim Lababdeh

    Hashim Lababdeh Greenhorn

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    23
    #4


    The example below contains an HTML form with two input fields and a submit button:


    <html>
    <body>
     
    <form action="welcome.php" method="post">
    Name: <input type="text" name="fname">
    Age: <input type="text" name="age">
    <input type="submit">
    </form>
     
    </body>
    </html>
    PHP:

    When a user fills out the form above and clicks on the submit button, the form data is sent to a PHP file, called "welcome.php":
    "welcome.php" looks like this:


    <html>
    <body>
     
    Welcome <?php echo $_POST["fname"]; ?>!<br>
    You are <?php echo $_POST["age"]; ?> years old.
     
    </body>
    </html>
    PHP:
    Output could be something like this:

    Welcome John!
    You are 28 years old.
    PHP:

     
    Hashim Lababdeh, Apr 26, 2013 IP