FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Checking for values in database and displaying error page





Sunny
Hi,

When the user submits the contact form, script validates the form and enters the values in database and an email is send to admin.

Now what I want is the script to check if 2 fields (date field and time field ) are already there in the database and if so it still logs the values to database but changes the hidden variable (repeat question to yes) and redirects to different error page.

How can this be achieved. ?
halilibo
as you said you can check the variables from database.

for redirectign to another page you can use Header("Location: somepage.php")

i think if you give us some more info and may be a part of code we can think of some answers for your question.
Related topics
secrets of firefox
[RESOLVED] 'localhost' database connection error!
Master Tutorial on SEO
php page-refresh/redirect/boot help needed please
Replace the 404 ERROR PAGE
Coustm error page (problem)
CPG NUKE HELP WEBSITE
Login System Tutorial Part 1 Creating Registration
error page
how to edit my 404 error page?
So, how is my new error page?
404 Not Found error was encountered (PLEASE HELP!!!)
Getting database connection error while installing wordpress
Database connection error (2): Could not connect to MySQL.
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.