Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
At 02:42 19.11.2002, vernon spoke out and said:
[snip]
>> In case you have them already available in your script, you could execute
>> the geozip.pl using exec() or system(), and merging the result into your
>> output.
>
>They are in the script. But how do I use these exec() or system()? Are they
>javascript? Could you give me an example?
[snip] 

They are PHP functions: http://uk.php.net/manual/en/function.exec.php

You would
$output_lines = array();
$retcode = 0;
exec('/path/to/geozip.pl', $output_lines, $retcode);

The array $output_lines will then hold every single line of the output of
geozip. The $retcode variable holds the return code.

As I have no clue about what geozip does, or how it might be called, nor
how the output of the geozip script is formatted, I cannot give further
hints. I'm sure someone will chime in here.


-- 
   >O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/



Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread vernon
> In case you have them already available in your script, you could execute
> the geozip.pl using exec() or system(), and merging the result into your
> output.

They are in the script. But how do I use these exec() or system()? Are they
javascript? Could you give me an example?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
At 02:30 19.11.2002, vernon spoke out and said:
[snip]
>I've gotten Geozip, as was suggested here, and I need to return the value of
>a form that contains two zip codes (one each from two different recordsets)
>binded to hidden fields which is then submitted to the "cgi-bin/geozip.pl"
>which then returns the distance between them.
>
>My problem is how do I get that info to display on a results page? Typically
>this works by entering the zip code in text fields and having the user hit a
>submit button. However I don't want the user to have to hit a submit button
>I want the info displayed automatically.
[snip] 

How do you get the zip codes?

In case you have them already available in your script, you could execute
the geozip.pl using exec() or system(), and merging the result into your
output.

Sorry if I am totally OT here...


-- 
   >O Ernest E. Vogelsinger 
   (\) ICQ #13394035 
^ http://www.vogelsinger.at/