- 1). Right-click the PHP file you want to edit. Click "Open With," then click the PHP editor you want to use to process the hidden field element.
- 2). Type the following code to retrieve the element:
$hidden = $_POST['fieldname'];
Replace "fieldname" with the name of the hidden field in the HTML form. The code above gets the value in the hidden field. - 3). Create the connection to the MySQL database. Use the following code to connect to the database and replace the database name, server name, username and password values with your own:
$connect = mysql_connect("server_name","username","password");
mysql_select_db("database_name", $connect); - 4). Create the MySQL insert statement that uses the hidden field's value. The following code inserts the hidden field into the tables "customfield" field:
$query = "insert into customer (customfield) values ('".$hidden.";)"; - 5). Insert the value into the database. Using the query built in step four and the previous database connection, you can insert the hidden field value:
mysql_query($query);
Related Posts "Health & Medical"
-
Why Replacement Inline Skate Wheels Are Crucial For Correct Skating
7/11/2019 7:52:00 AM -
How to Improve Balance - Your Two Best Exercise Program Choices
7/11/2019 4:40:00 AM
You might also like on "Health & Medical"
How to Replace Pull Ups in P90x
7/10/2019 6:24:00 PM
Help Ideas Concerning Discounts Or Smooth Departures On Flights To Las Vegas
7/10/2019 3:37:00 PM
What Are Some Minor Things I Can Do to Make My Snowmobile Last Longer?
7/10/2019 2:58:00 PM
Correcting High School American Football Preparation
7/10/2019 12:27:00 PM
3 Intense Fat Burning Cardio Workouts To Burn Flab Fast
7/10/2019 12:07:00 AM
Are You a Cardio Junkie?
7/9/2019 8:16:00 PM
Having An Appetite For Ping Rapture V2 Irons
7/9/2019 6:05:00 PM
A Guide to Abdominal Exercises
7/9/2019 6:02:00 PM
Fifty Years Working Out: 2 Mistakes I Wish I Had Not Made
7/9/2019 5:10:00 PM
Exercise Do's and Don'ts
7/8/2019 4:00:00 PM