473,385 Members | 2,243 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,385 software developers and data experts.

How do I get rid of long URLs?

In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?

--
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.
Feb 3 '07 #1
7 1538
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?
I forgot to tell, there is no user input required on the webpages

--
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.
Feb 3 '07 #2
On Feb 3, 9:33 am, Gunnar G <deb...@comhem.sewrote:
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?

I forgot to tell, there is no user input required on the webpages

--
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.
Dear Gunnar,

you could try to serialize your data and then compress it ...
Or, if you are looking for a method to send data from one server to
another, have a look at the curl functions - this way you could use
POST variables instead of GET and your data would disappear completely
from your URL ...

Good luck
Martin

Feb 3 '07 #3
Maybe you are looking for the HTTP POST method?

Feb 3 '07 #4
Gunnar G wrote:
>In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send
the variables in a more "invisible" way?

I forgot to tell, there is no user input required on the webpages
Then whoever has designed the site designed it to work that way - moving to
statically addressed URLs is not going to be trivial.

If the structure is consistent then you might be able to get some mileage
out of using mod_rewrite. And / Or you could look at condensing and
multiplexing your variables.

Or just shove a big frame in front of the page.

C.
Feb 3 '07 #5
Gunnar G wrote:
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?
Gunnar,

If you're just passing data from one page to another, you could use the
$_SESSION variable. Easier than using CURL, but one difference with
what you have now. $_GET values are transient - they only appear when
they are passed as parameters. Once a $_SESSION value is set, it
remains until you clear it or the session ends. This may or may not
cause problems for you.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 3 '07 #6
"Gunnar G" <de****@comhem.sekirjoitti
viestissä:xH*******************@newsb.telia.net...
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?
Are you really sure you want to use your time to this? Because if point is
to move information to ANY other page in ANY other domain without ANY
problems, that's the normal way to do it. Too much efforts just on "beauty"
of url are waste of time.

Of course sessions and cookies are there. But before using them, there
should IMHO be a REASON to do it.

Feb 3 '07 #7
<comp.lang.php>
<Gunnar G>
<Sat, 03 Feb 2007 08:27:09 GMT>
<xH*******************@newsb.telia.net>
In many cases I use URLs like foo.php?a=4b&c=d&e=f&g=h etc.
to send variables from one script to another
Is there a way to not have the long URL and just call foo.php and send the
variables in a more "invisible" way?
You could use a form button instead of a hyperlink .

<input type="hidden" name="user" value="<?php print $uzi; ?>">

The above variable wont show up on the next page .
--
www.phptakeaway.co.uk
(work in progress)
Feb 5 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: lawrence | last post by:
"Garp" <garp7@no7.blueyonder.co.uk> wrote in message news:<_vpuc.1424$j_3.13346038@news-text.cableinet.net>... > "lawrence" <lkrubner@geocities.com> wrote in message >...
2
by: Philipp Lenssen | last post by:
I'm looking for a way to truncate/ add-spaces & tag long URLs, so that "Check this out http://www.example.com/hello-world/foo-bar.html it's great" would turn into "Check this out <a...
3
by: Patrick Coleman | last post by:
Hi, I'm looking for a function to split urls into their component parts, ie protocol, host, path, filename, extension. I'm really only looking for path and hostname (so I can download a webpage...
23
by: Erik Schulp | last post by:
Hi all, I am using a background image via a stylsheet. I've used this code: background-image:url("/images/tile.gif"); (which I think is correct) The image doesn't show up however, the path,...
7
by: David Shorthouse | last post by:
Hey folks, Is anyone aware of any sort of asp coding to deal with long URLs? I have a few asp that pull URLs from fields within a MS db, which then display on a width-limited table. Is there any...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
3
by: John Bokma | last post by:
I have a table containing URLs. I want to be able to look up an URL very fast, so I used an nvarchar to store the URL, and put an index on it (maybe naive). Anyway, I bump into: "The index...
17
by: kevgibbo | last post by:
Hi, I'm currently having a problem where a long URL or a line of text with no spaces will break the design of a webpage, http:// blog.seoptimise.com/2007/01/how-to-add-delicious-and-digg-blog-...
11
by: joe | last post by:
Hello anyone knows how to write a funtion to genereate a tiny url with letters and numbers only. Something almost always unique. THanks.
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.