Code Based Data Entry

Codes here !

Moderators: macek, egami, gesf

coocoran
New php-forum User
New php-forum User
Posts: 7
Joined: Sat Nov 09, 2002 1:31 pm

Code Based Data Entry

Postby coocoran » Sat Nov 09, 2002 1:39 pm

I'm trying to simplify/speed up data entry by using a code entered into a data entry form, eg.

inputting say "rt10c" would enter "red, trousers, size 10, childrens" into appropriate database tables/fields....

any help on how to do this would be greatly appreciated....

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Sat Nov 09, 2002 3:05 pm

ok...

you can try to separete value ...

and analize every part of new array... somthing like that

Code: Select all

case ($val[2] == "t")
{
$midlleval="trousers";
}


Thare are posibilyty to use defoult data base tables values , but i never use tham so i would say anything about tham...

coocoran
New php-forum User
New php-forum User
Posts: 7
Joined: Sat Nov 09, 2002 1:31 pm

Postby coocoran » Sat Nov 09, 2002 5:42 pm

I want to have default values depending on the code inputted ( x_code = x_value )..... so that if say x-code, y_code, z_code is entered in my form then x_value, y_value, z_value are selected from their table/s and entered into another table/s as a unique combination.... this is then what will be displayed on my webpage....

I suppose its gonna be a whole bunch of if and select statements and several tables to get where I want to go....


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 6 guests