0
HELLO!! can you help me for creat sign up and Data Base plz?
Nabil
4 Answers
+ 2
Hi Nabrecx Gaming,
To post your clients inserted values/data to your database you need to,
Create a HTML form with action and method elements so the form knows how to process the inserted data/value.
The action element will take action on the inserted valued as soon the button is submitted and process it to your given path.
The method element will tells the form to GET or POST the inserted data/values to the given action path.
After you posted the inserted data to your given action path, the the PHP comes in action :P.
Connect to your DB, and insert the data in your DB.š
Have a look ate the snippet below, hope it helps.š
+ 2
<form action="send.php" method="POST">
Username: <input type="text" name="uname" required />
password: <input type="password" name="pass" required />
email: <input type="email" name="email" required />
<input type="submit" name="submit" />
send.php
<?php
//Connect to db. Change mysqli_connect with your credentials.
$connect = mysqli_connect("host","user","passwrod","db");
//Send form data to db. change your table name to yours.
mysqli_query($connect,"INSERT INTO your table name
VALUES ('$_POST[uname]', '$_POST[pass]', '$_POST[email]';
?>
+ 2
Nabrecx Gaming,
de rienšš
0
Tanks you my freinds merci beaucoup j vous merci beaucoup monsieur je parle tros anglais mais jai fait google traduction šš bon courage a vous
NABIL