Web Hosting Talk







View Full Version : Update Form Help???


FXWeb
11-28-2002, 02:13 AM
I need some help developing an edit form. I am using a mysql database.

Here are the field names for the mysql db:

id
name
address
city
state
zip
phone
fax
url
email
type

_____________

I have the edit link to the left of a table, the edit link coresponds to the id#.

If you have any more ?s, please im me at JWM1173 (AIM)

Thanks
Jeff

jtrovato
11-28-2002, 04:37 AM
Dude!!!

All you have to do is place the php variable in the vlaue field for each field type. and have a submit button on the bottom with the entire form of variables call another page that updates the database

Bulldog
12-02-2002, 01:54 AM
Vato (No, not racially driven I'm just lazy to type his full name) is right.

Declare the variable and then stuff it in the form ...

<input name="name" value="<?php $id ?>">

it's that simple.