|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
Most of the CGI I do is to send values to the CGI and display the HTML.
Now I want it not to display HTML but return some text. Example if others call my CGI from their CGI, E.g. $value= http://myweb/cgi-bin/mycgi.cgi?... They $value is a returned string or something. Thanks in advance. |
|
#2
|
|||
|
|||
|
Use backticks
@returnValues = `command`; command here is Unix (or other OS) commands, and not a call like you do with the browser ------------------ http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr http://www.guideclick.com/ - Qualified webmaster resources (affiliate programs, web design, tips) ------ Son |
|
#3
|
|||
|
|||
|
First of all, I don't think 123finder.com's solution is the one you're looking for at all, but I could be wrong.
Second, do you want the string to return, or the actually result html? |
|
#4
|
|||
|
|||
|
Yes JonLed, 123finder.com's answer is not I am looking for. I am not asking about back ticks. Unless
$var=`http:mywebcgi-binmycgi.cgi?...` will work as in $var will get a string. In my mycgi.cgi I print a "content: textn" before I print that string. I am asking if a php or a form can call a cgi and get values for them? e.g. in html form <input type=text name=var value=http:mywebcgi-binmycgi.cgi?... or in a php script $var=`http:mywebcgi-binmycgi.cgi?...` Thanks all for replying. |
|
#5
|
|||
|
|||
|
See this thread: http://www.devshed.com/Talk/Forums/...TML/000357.html
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > How to get back text from CGI? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|