Categories
How to implement an entry in the database from the search form?
How to make it record in a separate table - everything that users enter in the search field?
<input type="search" name="search" id="searchsite" placeholder="Search_" />
Answer the question
In order to leave comments, you need to log in
if(isset($_POST['search'])) { $result = protect($_POST['search']); if(empty($result) ) { echo ("Введите запрос, поле пусто."); } $insert_it = mysql_query("INSERT INTRO zaprosi SET zapros='$result'"); }
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question