Im trying to pass my data from one perl script to another via link :
<a href=navigate.pl?$pagectr|$query>$pagectr</a>
$query is my search query and I want it to be passed and be used by the other script. But I wasnt able to do so because it only passes the first part of the string and terminates right after the space. heres an example:
$query = SELECT * FROM sqrequest WHERE id != 0 ORDER BY date, time
.. but when i pass it, only "SELECT" is being captured.
Im planning to change all the spaces into any char but I dont know how.
Is there a way for me to make it work, or is there a better way of doing this.
Any help is deeply appreciated. Thanks in advance
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|