• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Good idea or Bad idea?

#1
[eluser]asmedrano[/eluser]
I might be over thinking this.
Simple form...' mysite/form' ----> submits to ---- >'mysite/processform' (w/e)
Whats the best way to keep people from stumbling to that page mysite/processform should they have that inclination?

What do you guys/gals think about this:

Code:
function processform ()
    {
        if($_SERVER['REQUEST_METHOD'] =='POST') {

                     //// do all form validation ect

                 }
                 else{

                    //// they came directly to this page for some reason so send user to another page.
                    
                }

    }

? Any thoughts?


Messages In This Thread
Good idea or Bad idea? - by El Forum - 09-19-2009, 09:13 PM
Good idea or Bad idea? - by El Forum - 09-19-2009, 10:02 PM
Good idea or Bad idea? - by El Forum - 09-19-2009, 10:14 PM
Good idea or Bad idea? - by El Forum - 09-19-2009, 10:24 PM
Good idea or Bad idea? - by El Forum - 09-20-2009, 02:21 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.