Blank in name attribute converted to underscore

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

The database was created some time before and I cant make the changes to the fieldnames as many other scripts (coded by others) are already connected to it.

For the current script that Im making, I was thinking of having the form fields' names match those of the MySQL fieldnames to minimize a lot of assignment statements.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If they were algorithmicly different then it wouldn't matter much. Worst case, you could store a map of columns to fields.
Post Reply