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 8491753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:31:27+00:00 2026-06-10T22:31:27+00:00

I am working on a web application in which i want to make some

  • 0

I am working on a web application in which i want to make some security constraints and want to know the alternative way to send the data or id from URL in a secure way.for example:

$id=$row=['id'];
$name=$row['name'];

<a href="projects.php?project_id=<?pho echo $id; ?>&name=<?php echo $name; ?>">

so is there any alternate way to send this two attributes in a secure way to the project.php ?
I just only want that the id & name should not be visible on url.
Please guide me ,i know this is very basic feature of PHP and i just want to find the alternate or secure solution.
i know i am sending the data using get but is there any alternate way to send data to project.php without using tag?

I tried this after all comments & answer ,so the answer is :

<?php
$id="1";
$name="Harshal";
?>
<a href="projects.php?id=<?php echo base64_encode($id) ?>&name=<?php echo base64_encode($name) ?>">Send</a>

and on projects.php

<?php
echo $idd=base64_decode($_GET['id']);
echo $namme=base64_decode($_GET['name']);
?>

It works…!!

  • 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-10T22:31:28+00:00Added an answer on June 10, 2026 at 10:31 pm

    Anything sent in a URL is by default pretty much there for anyone and everyone to see, use and abuse.

    Having said that, sometimes you simply have to send it that way. You can’t make the data in the URL secure, by you can make your code treat it in a secure manner.

    For example, if you pass data via the URL and simply display data, anyone can change the URL bits and see information that they aren’t supposed to. If you however send data via the URL and your code then performs a check to see if the user is able to see it, that suddenly becomes much more secure.

    Another quick method is to provide a link that copies the data into a session and redirects the user to a fresh page – showing them the content they wanted based on the information in their session – and again verifying that they are indeed allowed to see it.

    Keep in mind that URLS can be edited by anyone in the space of seconds. Post data really isn’t too much different – though it might take a little more effort to fudge. To secure it, you need to make sure that the code you have is able to treat it in a secure manner.

    Edit:

    You should change your code to this:

    <?php
    $id="1";
    $name="Harshal";
    ?>
    <a href="projects.php?id=<?php echo base64_encode($id); ?>&name=<?php echo base64_encode($name); ?>">Send</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a web application which must be able to encrypt data
I have one web application which I have been working for some time.I am
I'm working on an MVC3 Razor web application which gets it's page decoration from
I am working on a ASP.Net web forms application which I inherited from a
I'm working profesionally on a php web application which contains contacts, among other data.
I have an existing and working java web application. I want to make this
I'm working on a web application framework, which uses MSSQL for data storage, mostly
I'm working on a web based application which uses a JSON over HTTP based
Well, simple question. I'm working with VS2008 on an ASP.NET web application which has
I am working on a web application (using Grails) which will generate a gift

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.