How to send values in a hidden way to the SQL database inside forms with POST [closed]

0

Good morning guys, I have a question in PHP. I have a page on my site that contains a form that sends through post information the same to a validation page that connects and sends the information to the database. However my site has a desktop version and one for mobile and wanted to create a string "$ mododeuso" on both pages but each one with a different value to be passed to the validation page and added together in the database. Can you do this by inputting the post? If not how could I do this?

    
asked by anonymous 26.09.2016 / 12:53

1 answer

1

In the function that you do the check sends a value to a field type hidden in HTML and sends via POST to PHP.

<input type="hidden" value="desktop" name="device">

PHP

$device = $_POST['device'];
    
27.09.2016 / 21:40