Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

If then else?

Participant ,
Jun 04, 2007 Jun 04, 2007

Copy link to clipboard

Copied

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?

TOPICS
Server side applications

Views

251
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jun 05, 2007 Jun 05, 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!

Votes

Translate
Participant ,
Jun 05, 2007 Jun 05, 2007

Copy link to clipboard

Copied

LATEST
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!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines