Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Getting a value from a PHP script

by blm (Hermit)
on Sep 18, 2002 at 11:46 UTC ( [id://198796]=note: print w/replies, xml ) Need Help??


in reply to Getting a value from a PHP script

In processing the form submission can you foward the user from the php script to a url of a perl cgi script with engr as a parameter? You want them to go to a url like http://mysite/myperlscript?engr=somevalue. I am not sure how to do this in PHP.

In the perl script have something like this to get the parameter into a scalar and do something with it.
use CGI; my $cgi = new CGI; ... my $engr_value = $cgi->param("engr"); #Do something with based on the value of $engr_value

Of course you will have to take into account the fact that the script will run under reduced privileges similar to the web server. This would be the same with the other suggestions made.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found