|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
>>&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. |
|
#3
|
|||
|
|||
|
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).] |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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] |
|
#6
|
|||
|
|||
|
>>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"; |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > envoke a url from inside perl (HELP) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|