ive got to send this information from a word document on a website using php coding to another site and put it on a database. i have no problems with the task of sending the infromation to the database at all its jsut presenting it the way i want it
i want to validate it so the right information goes in this right place
eg. the database should show this sort of structure say
specie name, infromation, height, weight
however if the user sends this information in a different order this may be a problem for putting the information in the right place
is there any code or a website or something that i could look up that may help with this
php validation
Moderator: General Moderators
- akuji36
- Forum Contributor
- Posts: 190
- Joined: Tue Oct 14, 2008 9:53 am
- Location: Hartford, Connecticut
Re: php validation
When you create form and add php validation you control everything(well.. just about.)
1. create html form
2. add validation using regex
:http://www.phpvideotutorials.com/regex/
above shows tutorial on using regex
3. finish up php script with regex. then send results
to your database using mysql insert statement
then you can format fields for number and structure
http://www.phpvideotutorials.com/app/webroot/lesson13/
I like xampp because it installs ---php and mysql a server and mysqladmin.
Mysqladmin helps you work with pgp and mysql and it shows you the
commands it executed to create rows etc
1. create html form
2. add validation using regex
:http://www.phpvideotutorials.com/regex/
above shows tutorial on using regex
3. finish up php script with regex. then send results
to your database using mysql insert statement
then you can format fields for number and structure
http://www.phpvideotutorials.com/app/webroot/lesson13/
I like xampp because it installs ---php and mysql a server and mysqladmin.
Mysqladmin helps you work with pgp and mysql and it shows you the
commands it executed to create rows etc