Web form

genesisvh
genesisvh used Ask the Experts™
on
I have a form that only registered users are allowed to use. How can I keep the public from using the form from simply putting in the url.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
You have to have a login system that will redirect anyone who isn't logged in.
F IgorDeveloper

Commented:
How do you check if a user is registered??

Author

Commented:
Yes I do have a login system and I do have sessions. I was thinking of a way to restrict that form from non users.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Then you need to put a login check at the top of that page and redirect if they aren't logged in.

Author

Commented:
Can you give me an example of a login check?
Fixer of Problems
Most Valuable Expert 2014
Commented:
It's the same code essentially that you use on your login page.  Here's Ray's article on it: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_2391-PHP-login-logout-and-easy-access-control.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial