Skip to content

Sign-In tab has issue. #1

@Rhishikesh12

Description

@Rhishikesh12

✨ Description

When users click on the sign-in tab, the deployed page is incorrectly downloading the login.php file to their machine.

Problem is here :

you have commented header ,

image

You can fix this issue.

✨ Solution

To resolve this issue, you need to make sure that the server is configured to send the correct content type and content disposition headers for the file you want to open in a new page. Here's an example of how you can set the headers using PHP:

<?php
$file = 'path/to/your/file.html';

// Set the appropriate content type
header('Content-type: text/html');

// Set the content disposition to open the file in a new page
header('Content-Disposition: inline; filename="'.basename($file).'"');

// Output the file content
readfile($file);
?>

By setting the Content-Disposition header to inline, you're instructing the browser to open the file in the browser window instead of prompting a download.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions