Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. 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???

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???

Scheduled Pinned Locked Moved Web Development
questionphpdatabasesysadmintutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CoderForEver
    wrote on last edited by
    #1

    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

    N A 2 Replies Last reply
    0
    • C CoderForEver

      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

      N Offline
      N Offline
      nickmaroulis
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • C CoderForEver

        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

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups