Skip to main content
Inspiring
June 4, 2007
Answered

If then else?

  • June 4, 2007
  • 1 reply
  • 287 views
How to redirect a user if the value in the database field is filled with "voted" or not?
I have stuck on this for over two hours, any ideas how to?

This topic has been closed for replies.
Correct answer Westmatrix
I have it sorted, something I thought of which I should have thought in the beginning.
Leave the login as is and redirect to a page that can solve the query.

<?php
if ($row_rsvote['vercode'] == 'voted'){
header("Location: booksubmit.php");
}else{
header("Location: result.php");
}
?>

Problem solved.
Thank you all for your help!

1 reply

WestmatrixAuthorCorrect answer
Inspiring
June 5, 2007
I have it sorted, something I thought of which I should have thought in the beginning.
Leave the login as is and redirect to a page that can solve the query.

<?php
if ($row_rsvote['vercode'] == 'voted'){
header("Location: booksubmit.php");
}else{
header("Location: result.php");
}
?>

Problem solved.
Thank you all for your help!