Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8200079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:18:46+00:00 2026-06-07T06:18:46+00:00

i wanna know to make my td tag style visible an getting value from

  • 0

i wanna know to make my td tag style visible an getting value from another php page in the form of session varialbe as my code is define under,

on else condition fron php page i am setting session variable and redirecting to another page as,

else {
session_start();
$_SESSION['Validation'] = 'on';
header("Location: index.html");
}

after then on index.html page in between table tag i am using this script as,

<?php
session_start();
$foo = $_GET['Validation'];
echo $foo;
?>
<tr><td colspan=2><font face="verdana,arial" size="-1" color="red"       style="visibility:hidden">Wrong username or Password</font></td></tr>

how to make td tag style vissible true and it remain hidden if session variable do not get any value ????

Hopes to listen from you …

Thanks in Advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:18:48+00:00Added an answer on June 7, 2026 at 6:18 am

    use a simple if... then... else condition and make use of your $_SESSION variable to switch those conditions. Create a new variable to hold your current style e.g. $tdStyle = "visibility: hidden;" or $tdStyle = "visibility: visible;" for hiding/showing your td, respectively.

    HTML/PHP CODE: [EDIT]

    <?php
      ...
      if ($_SESSION['Validation'] == "on") {
         $tdStyle = "visibility: visible;";
      } else  {
         $tdStyle = "visibility: hidden;";
      }
      ...
    ?>
    ...
    <tr><td style="<?php echo $tdStyle; ?>">Wrong username or Password</td></tr>
    ...
    

    EDIT: Use index.php not index.html when embedding PHP codes in HTML or your php code will be treated as plain text/html

    header("Location: index.php");
    
    NOT
    
    header("Location: index.html");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi guys i am going to make a android game. i wanna know that
I wanna know that how we can identify whether a page is redirecting to
I wanna know if it's possible to call php api like in extjs 3.x.x.
I wanna know is it possible to make an operating like windows-xp which is
I just wanna ask how can I make a form with two buttons that
I wanna know how can I get a value of a child of a
HI Guys. I wanna know how can I make a simple search using named
I wanna know how do I enable a disabled form text field on submit.
I don't know if this might be an-already answered question, if i wanna make
I wanna know how can I make 2 UIAlertView, with 3 buttons, the UIAlertViews(2)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.