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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:52:55+00:00 2026-05-26T10:52:55+00:00

When I pass a value via GET, it automatically coverts symbols such as &

  • 0

When I pass a value via GET, it automatically coverts symbols such as & and = to %26 and %3D in the URL. How can I prevent this from happening?

echo "<option value='" . $row['school'] . "&canteen_location=" . $row['canteen_location'] . "'>" . $row['school'] . " - " . $row['canteen_location'] . "</option>";

I’m trying to pass through two parameters through only one option. If I knew AJAX I would have two separate forms with the second one (canteen location) being based off of the first one (school)…but I don’t.

Thanks!

  • 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-05-26T10:52:55+00:00Added an answer on May 26, 2026 at 10:52 am

    Please don’t proceed in this direction; one alternative:

    html

    <select name="school">
      <option value="glendale_loc1">GlenDale - Loc 1</option>
      <option value="glendale_loc2">GlenDale - Loc 2</option>
      <option value="weho_loc3">WeHo - Loc 3</option>
      <option value="weho_loc4">WeHo - Loc 4</option>
    </select>
    

    php

    list($school,$canteen)=explode('_',$_GET['school']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to pass form information via GET - this is important so that
I need to pass a DATETIME value via a GET request and verify that
I'm trying to pass value by using EL expression in get request parameter, but
Anyone have idea how to pass value from iPhone application to the REST-Webservice using
How do I pass a value from one screen to its previous screen? Consider
Can I pass a value out of a javascript function and back to the
I am trying to pass a value from C++ to TCL. As I cannot
From what I understand: when you pass by value, the function makes a local
We know that if we pass some values via GET method we will see
I get the following error when trying to pass variables via URLRequestMethod.POST; Error: Error

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.