PDA

View Full Version : Form ---> php ---> mysql



Mekhu
December 14th, 2001, 18:27
I have a form that I fill out when I want to enter info into my dbase via php...

One of the form fields is a place where I can input lots of text. I figured out how to make it so the output shows my parapgraph breaks, etc... What I want is the option when filling out the form, to be able to bold text, change color, etc within the actual form field?

Anyone know how I could do this?

Thanks,

Mekhu

jam-session
December 16th, 2001, 11:57
<? IF ($name) {
$link = mysql_connect("host", "name", "password")
or die ("Could not connect");
mysql_select_db ("DB_name")
or die ("Could not select database");
$result = mysql_query("INSERT INTO wherever (what) VALUES ($what)");
mysql_close($link); } ?>

just call the bit you want to be sent in name or what ever :D

Mekhu
December 16th, 2001, 17:44
YOu lost me on that one...

can you do an actual example?

jam-session
December 17th, 2001, 10:40
Put this at the top of your page.

<? IF ($name) {
$link = mysql_connect("host", "name", "password")
or die ("Could not connect");
mysql_select_db ("DB_name")
or die ("Could not select database");
$result = mysql_query("INSERT INTO wherever (what) VALUES ($what)");
mysql_close($link); } ?>

then call your form name or whatever. It'll submit it into a MySql database or should
:D