Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Forgot how to do this easy thing to add information to database

    Hello. How do i make so the inputs come to database when the user have type the information?

    PHP Code:
    <?php



    ?>

    <form method="post" action="?p=add"><center>
    Host name<br>
    <input type="text" name="">
    <br><br>

    Party title<br>
    <input type="text" name="">
    <br><br>

    Type<br>
    <select>
    <option>Festival</option>
    <option>Party</option>
    </select><br><br>

    Start-Time<br>
    <input type="text" name=""><br><br>

    Endtime<br>
    <input type="text" name=""><br><br>

    Date<br>
    <input type="text" name=""><br><br>

    Country<br>
    <input type="text" name=""><br><br>

    State<br>
    <input type="text" name=""><br><br>

    Street-adress<br>
    <input type="text" name=""><br><br>

    Phone<br> (Do not forget to add your dialing code)<br>
    <input type="text" name=""><br><br>

    Entrance Fee<br>
    (US dollar)<br>
    $<input type="text" name=""><br><br>

    Free food?<br>
    <select>
    <option>Yes</option>
    <option>No</option>
    </select><br><br>

    Free drinks?<br>
    <select>
    <option>Yes</option>
    <option>No</option>
    </select><br><br>

    Do they need to bring their own drinks?<br>
    <select>
    <option>Yes</option>
    <option>No</option>
    </select><br><br>

    Other info<br>
    <textarea rows="4" cols="50" style="max-width: 500px;" name="">
    </textarea><br><br>

    <input type="submit" name="button" value="ADD">

    </center></form>

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You provide each input with a unique name.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •