Results 1 to 2 of 2

Thread: Validating POST form data

  1. #1
    Join Date
    Mar 2008

    Validating POST form data

    This may be a really silly question but is it entirely necessary to validate form data which originates from a html select list consisting of say numbers, before using that data in a database?

    The main reason behind the question is that i have a list which is generated by my script and so no input is collected directly from the user. However, if it is possible to submit POST data to that script via an external program or web page then i can see that is definitely necessary - as someone could submit unwanted data to it.

    So i guess my real question is, can you submit POST data to an external site?

  2. #2
    Join Date
    Sep 2008
    The form will send the data where ever you tell it to in action="", your own site or somebody elses.
    As far as validation... it is always wise to make sure that the sender is sending what you want.... especially if you are feeding a database.
    ...but stupidity is terminal.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles