to all the experts of www.itdunya.com....
i need to store data from multiple checkboxes into database using php...
how to do.....
i am using wampserver ...
thanks
to all the experts of www.itdunya.com....
i need to store data from multiple checkboxes into database using php...
how to do.....
i am using wampserver ...
thanks
کیا آپ اندازے سے دیا ہوا کوئی بے تکا جواب چاہتے ہیں؟
اگر نہیں ، تو کچھ تفصیلات دیجئے آپکا سوال واضح نہیں ہے۔ مثلا" کیا یہ آپکا کوئی کمپوٹر پروجیکٹ ہے یا آپ یہ کام کا کسی آن لائین ویب سائیٹ پر کررہے ہیں۔ پی ایچ پی کو کونسا ورژن انسٹال ہے۔ اگر ویب سائیٹ ہے تو اسکا یوآرایل بتایئے۔ ڈیٹا بیس کی انفارمیشن دیجئے۔ وغیرہ وغیرہ۔
ji bhai jan......these are the details....which i think are enough to understand.
i am using php5 , mysql version 5....working in dreamweaver 8...
and i have started working on a personal project to do ....for my practice on local server on my computer...
this is the code (need modification) of the form which i want to store the data:
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="chkform.php">
First Name:<input type="text" size="12" maxlength="12" name="Fname"><br />
Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br />
Gender:<br />
Male:<input type="radio" value="Male" name="gender"><br />
Female:<input type="radio" value="Female" name="gender"><br />
Please choose type of residence:<br />
Steak:<input type="checkbox" value="Steak" name="food"><br />
Pizza:<input type="checkbox" value="Pizza" name="food"><br />
Chicken:<input type="checkbox" value="Chicken" name="food"><br />
<textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br />
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
Select your favorite time of day:<br />
<select name="TofD" size="3">
<option value="Morning">Morning</option>
<option value="Day">Day</option>
<option value="Night">Night</option></select><br />
<input type="submit" value="submit" name="submit">
</form>
</body>
</html>
and i need to create another page which i want to use to get the values from the form and to store in database...in a table.
i can make connection to the database, run queries to insert, delete, update the data in data base e.t.c but i know the only basics ........
so i need your help......thanks
please do reply................you people are just reading this!!!!!!!!!.....
It is not a valid html but it's not an issue here. Tags are OK and your file named chkform.php is supposed to collect all information sent by users.
When you post html, warp the tags under this button and for php code use this.
what do you mean by "nice" ,,,,,,i need solution to my problem ..
Bookmarks