SunQuest
           Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 27th, 2000, 03:18 PM
Pern Pern is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 0 Pern User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Pern
im trying to envoke a url from inside perl any ideas how like this sorta would be great

my $url = 'http://www.yahoo.com';

callurl($url);#sub to call the url

&callurl{
# what do i put into here?? HELP!!!!

}


--------------------
thanks for any help u can give in advance

Reply With Quote
  #2  
Old October 27th, 2000, 08:38 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>&callurl{
This should be "sub callurl {"

>>callurl($url);
This should be "&callurl($url);"

>># what do i put into here?? HELP!!!!

It depends on what you really want to do. If you can provide that, we may have a clue.

Reply With Quote
  #3  
Old October 28th, 2000, 09:14 AM
Pern Pern is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 0 Pern User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Pern
im trying to start a page from inside perl ..call it ...
heres what im trying to do i have a regisration cgi i did and the last part is to goto a page (url) when its all done when the user is aproved and i cant get it to goto the page from inside perl with out a link (pressed link) i want perl (the cgi) to go there by its self from inside the cgi..

id like to make it sorta like a function so i can call it as a routine insert the saved varible as url and send it on its merry way..

thanks
pern


<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd:
>>&callurl{
This should be "sub callurl {"

>>callurl($url);
This should be "&callurl($url);"

>># what do i put into here?? HELP!!!!

It depends on what you really want to do. If you can provide that, we may have a clue.
[/quote]



[This message has been edited by Pern (edited October 28, 2000).]

Reply With Quote
  #4  
Old October 28th, 2000, 09:53 AM
udd udd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 udd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to udd
Hi!

I guess you can do that with this function:

$url="http://www.altavista.com";
print "Location: $url nn";

(whitout a header like 'print "Content-type: text/htmlnn";')

Otherwise you can let PERL return a javascript that redirects the user to the new page:

print "<script language="JavaScript">";
print " window.location="http://www.altavista.com";";
print "</script>";

// udd

Reply With Quote
  #5  
Old October 28th, 2000, 01:53 PM
Pern Pern is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 0 Pern User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Pern
thanks ill try that ad keep u posted..
hope this works i have it working sorta now but only local pages i need a page off the server for the completion...
thanks fo all ur help i bow to thee kind sir

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by udd:
Hi!

I guess you can do that with this function:

$url="http://www.altavista.com";
print "Location: $url nn";

(whitout a header like 'print "Content-type: text/htmlnn";')

Otherwise you can let PERL return a javascript that redirects the user to the new page:

print "<script language="JavaScript">";
print " window.location="http://www.altavista.com";";
print "</script>";

// udd
[/quote]


Reply With Quote
  #6  
Old October 28th, 2000, 04:34 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>when its all done when the user is aproved and i cant get it to goto the page from inside perl with out a link

Just use the "print "Location: $url nn";" as ubb mentioned.

If you want the output to show the input data of that user, then simply:
print "Content-type: text/htmlnn";
print "Hello $username,n";
print "You have entered the following data:n:";
print "Age: $agen";
print "country: $countryn";

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > envoke a url from inside perl (HELP)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway