How to check whether a database/table exists using php and how prevent sending a form 2 a php file if there r fields not filled by the user???
-
He buddies I was working on some project .... it is my first site desing.. First how can I prevent a form to be sent to a web server i.e I checked if the fields are filled by the user or not ..... but after that I cant stop the data to be sent to a web server. Secondly after this is done. I want to check if the database and table exists or not on the web server. How can I do that?? Thank you Nothing Is Impossible
-
He buddies I was working on some project .... it is my first site desing.. First how can I prevent a form to be sent to a web server i.e I checked if the fields are filled by the user or not ..... but after that I cant stop the data to be sent to a web server. Secondly after this is done. I want to check if the database and table exists or not on the web server. How can I do that?? Thank you Nothing Is Impossible
dont use javascript to validate!! make sure you validate on the server else the validation can be bypassed ie let them submit the form and then validate it. If it is your webserver wouldnt you know if the table and database exist? It is all explained on php.net in great detail
-
He buddies I was working on some project .... it is my first site desing.. First how can I prevent a form to be sent to a web server i.e I checked if the fields are filled by the user or not ..... but after that I cant stop the data to be sent to a web server. Secondly after this is done. I want to check if the database and table exists or not on the web server. How can I do that?? Thank you Nothing Is Impossible
use AJAX to get server response to the client. Here actually you are placing a request to the server from the client but the form itself will not be entirely posted to teh server. you can send urlencoded parameters of all the fields you find and check in the server if they are proper. This might help http://www.w3schools.com/Ajax/Default.Asp[^]
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.