Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get variable value from other site?

Status
Not open for further replies.

JackTheRussel

Programmer
Aug 22, 2006
110
FI
Hi.

I have page called upload.mas. There I have
HTML-from where user can upload image.

form action is upload.cgi, which takes care of the upload.

When upload.cgi has uploaded image, it goes back to the page, where user uploaded the image, using the refresh function:
Code:
<html>
<head><meta 
http-equiv="REFRESH" content="3;url=http://www.upload.mas">
</head>
<body>
<p>Thanks for the upload. 
</body>
</html>

How can I send variable information from the upload.cgi page to the page ?

I would like to send image-name information to the page where user uploaded the image.

Is it possible, and how ?
 
Don't use the meta tag to refresh to the page, write the page dynamically with your script instead, then you can include anything you want.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
You can append parameters to the URL you're redirecting to:
Code:
<meta http-equiv="REFRESH" content="3;url=http://www.upload.mas?nam1=value1;name2=value2">
 
Unless the .mas page has a way of parsing the query string that will not help. On the other hand, if it does, then that is the way to go.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top