By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,739 Members | 1,081 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,739 IT Pros & Developers. It's quick & easy.

bypassing form and submitting data through web address - NOT WORKING

P: n/a
Hello and Good day.

There's a site I want to link to passing info I collect without having
to re-enter the data on that's sites input form. I know this is not
always possible, but in this case want to make sure it's not code. The
site renders a Sat image when fed address.

To manually get to the form go to :
imageatlas.globexplorer.com
and enter a valid address and hit FIND IT.

The form in the source that submits from the FIND IT gif is below:

<form name="address" method="POST"
action="http://imageatlas.globexplorer.com/ImageAtlas/view.do?group=ImageAtlas">
<tr>
<td width="75"><img src="images/spacer.gif"></td>
<td width="77"><img src="images/spacer.gif"></td>
</tr>

<tr>
<td colspan="2">Address <br> <input type="text"
name="address">
</td>
</tr>
<tr>
<td colspan="2">City<strong><br>
<input name="city" type="text" id="city">
</strong></td>
</tr>
<tr>
<td>State<strong></strong></td>
<td>Zip Code (Optional) </td>
</tr>
<tr>
<td>
<input name="state" type="text" id="state" size="8">
</td>
<td>
<input name="zip" type="text" id="zip" size="8">
</td>
</tr>
<tr>
<td colspan="2"><input type="image" height="17" alt="Find
Image" hspace="36" width="72" src="images/bttn_findimage.gif"
border="0" name="I1"></td>
</tr>
</form>
</table>
My automated attempt to pull 101 SW 54 ST MIAMI FL (NO NOT MY REAL
ADDRESS SO DON'T TRY AND SHOW UP FOR DINNER OKAY):

http://imageatlas.globexplorer.com/I...miami?state=FL

results in nothing???

should i also pass that I1 field? is so what/how? If not possible,
why/how?

Many thanks in advance for any help or info!
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

<ja***@cyberpine.com> wrote in message
news:ef**************************@posting.google.c om...

[snip]
The form in the source that submits from the FIND IT gif is below:

<form name="address" method="POST"
action="http://imageatlas.globexplorer.com/ImageAtlas/view.do?group=ImageAtl
as"> <tr>
<td width="75"><img src="images/spacer.gif"></td>
<td width="77"><img src="images/spacer.gif"></td>
</tr>

<tr>
<td colspan="2">Address <br> <input type="text"
name="address">
</td>
</tr>
<tr>
<td colspan="2">City<strong><br>
<input name="city" type="text" id="city">
</strong></td>
</tr>
<tr>
<td>State<strong></strong></td>
<td>Zip Code (Optional) </td>
</tr>
<tr>
<td>
<input name="state" type="text" id="state" size="8">
</td>
<td>
<input name="zip" type="text" id="zip" size="8">
</td>
</tr>
<tr>
<td colspan="2"><input type="image" height="17" alt="Find
Image" hspace="36" width="72" src="images/bttn_findimage.gif"
border="0" name="I1"></td>
</tr>
</form>
</table>
My automated attempt to pull 101 SW 54 ST MIAMI FL (NO NOT MY REAL
ADDRESS SO DON'T TRY AND SHOW UP FOR DINNER OKAY):

http://imageatlas.globexplorer.com/I...miami?state=FL
results in nothing???


Data sent via the POST method appears in the body of the request. With a GET
request, as when you use URL arguments as above, the data is sent as an
argument to the GET command that opens the request. Theoretically, a server
process can provide a way to access data in either place or in both places.

For example, if the data is in application/x-www-form-urlencoded format,
Active Server Pages will let you use

Request.Form("address")

to retrieve the contents of an "address" field from POST data, or

Request.QueryString("address")

to retrieve the contents of an "address" value from GET data. You can also
use

Request("address")

which will return an "address" field found in *either* location. If this is
how the server-side application accesses the data, your approach should
probably work. If the application uses Request.Form('address"), your
substitution definitely *won't* work.

Jul 20 '05 #2

P: n/a
ja***@cyberpine.com wrote:
There's a site I want to link to passing info I collect without having
to re-enter the data on that's sites input form. I know this is not
always possible, but in this case want to make sure it's not code. The
site renders a Sat image when fed address.

To manually get to the form go to :
imageatlas.globexplorer.com
and enter a valid address and hit FIND IT.

The form in the source that submits from the FIND IT gif is below:

<form name="address" method="POST"
action="http://imageatlas.globexplorer.com/ImageAtlas/view.do?group=ImageAtlas">
Often a POST form can not be simulated via a GET URL, but in this case
it appears that it can.
My automated attempt to pull 101 SW 54 ST MIAMI FL (NO NOT MY REAL
ADDRESS SO DON'T TRY AND SHOW UP FOR DINNER OKAY):

http://imageatlas.globexplorer.com/I...miami?state=FL


? is used to separate the query part of the URL from the path part.
& is often (not always) used to separate name/variable pairs within
the query.

So the URL you want is:
http://imageatlas.globexplorer.com/I...miami&state=FL

If you include this URL in a web page then remember to write &amp; for
every &.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.