473,383 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

post/request value in php

xxoulmate
how can i include & sign in posting.

eg. <a href='home.php?a=hello&world'>hello</a>

when i retrieve a
its value is just hello.,

how can i retrieve all value of a
which is a = hello&world
Oct 20 '09 #1

✓ answered by Dormilich

& has a special meaning in URLs, it denotes the next parameter. you need to use the %-escape (%26)

9 3008
Dormilich
8,658 Expert Mod 8TB
& has a special meaning in URLs, it denotes the next parameter. you need to use the %-escape (%26)
Oct 20 '09 #2
what do you mean use the %-escape
is it like this:
<a href='home.php?a=hello%26&world'>hello</a>
Oct 21 '09 #3
tnx i got it.,
<a href='home.php?a=hello%26world'>hello</a>
Oct 21 '09 #4
Markus
6,050 Expert 4TB
&amp; would also work, I believe.

Mark.
Oct 21 '09 #5
Dormilich
8,658 Expert Mod 8TB
@Markus
it won’t in XHTML (and possibly in HTML too), since you must escape the non-entity ampersands.
Oct 21 '09 #6
Markus
6,050 Expert 4TB
@Dormilich
Of course. Silly me :(
Oct 21 '09 #7
Dormilich
8,658 Expert Mod 8TB
@Markus
I just happened to read RFC 1738 recently.
Oct 21 '09 #8
how about the apostrophe (') how to escape it.
Oct 23 '09 #9
TheServant
1,168 Expert 1GB
Don't see where it is in your reference but it's: %27
Have a look here for all the characters.

Just keep in mind, people don't remember characters. Using these characters in URLs is not good for users, unnecessary for URLs, and probably get spiders doing funny things. But that URL encoding reference sheet should give you all the characters you need!
Oct 23 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: John Davis | last post by:
<html> <body> <Form action="calc.asp" method="post" name="calc"> <P>NUM1: <input type="text" name="num1"> <P>NUM2: <input type="text" name="num2"> <P>RESULT: <input type="text" name="result">...
7
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open...
1
by: Matt | last post by:
If we use GET protocol, we can use either Request("controlname") or Request.QueryString("controlname") to get the data entered by the user. But if we use POST protocol, we MUST use...
2
by: Robert Oschler | last post by:
I am working on a PHP 4 app that interacts with an external authorization server. The external server does "third-party" authorization of users. So I do the following: 1) Each of my PHP scripts...
4
by: Martin Feuersteiner | last post by:
Dear Group I'm having trouble with the script below. How do I set the RequestType so the script will use POST instead of GET? I tried the script below with no luck. Thanks for your time &...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
4
SuperMetroid
by: SuperMetroid | last post by:
The html code of the form, and my code are below. I can't get the value to post/submit.. instead I get an error. Can anyone help? HTML Code of Form: <form method='post' autocomplete='off'> ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.