August 21st, 2000, 02:03 PM
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.
August 21st, 2000, 04:25 PM
@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)
August 21st, 2000, 07:05 PM
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?
August 21st, 2000, 08:08 PM
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
Thanks all for replying.
August 21st, 2000, 09:39 PM