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

  • SEARCH
  • Home
  • 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 8504205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:57:47+00:00 2026-06-11T01:57:47+00:00

i have php page with get 2 parameters $link and $text i want get

  • 0

i have php page with get 2 parameters $link and $text
i want get $link parameter with all parameters inside it example

test.php?link=www.google.com?test=test&test2=test2&text=testtext

i want get link = ‘www.google.com?test=test&test2=test2’
and get text = testtext

i use this php script

<?php

      $text = $_GET['text']; 
      $link = $_GET['link'];

      echo  $text;
      echo  $link;

?>

output

testtext
www.google.com?test=test
  • 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-11T01:57:48+00:00Added an answer on June 11, 2026 at 1:57 am

    You should encode your parameters before using it on GET.

    echo '<a href="test.php?link=' . urlencode('www.google.com?test=test&test2=test2') . '&text=' . urlencode('testtext') . '">test</a>';
    

    In that way, there is no conflicts between google vars and yours.

    See urlencode() manual for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP page which creates a JPEG using GET parameters. I want
I have a $.get() call to a PHP page that takes 4 GET parameters.
I have an iframe with parameters inside the src url like this: <iframe src=http://www.form-page.com?suppressRedirect=1&A=1841
i have this simple code to load data from other php page using get
I have a PHP page where i want to open a file on a
Here's my problem, say, for example, I have a link on my page, it
I have a page with php query results in a table. Now I want
I have a site where each page is actually a parameter of the index.php
I have 3 links on page index.php: <div id=languages> <a href=index.php?page=test&lang=en id=flag> <img src=./images/flags/en.png
I have written a simple code in page test_cookie.php to work with cookies. if(isset($_GET['data']))

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.