• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

CGI vars into PHP

Bit rusty on perl, I forget how to access the variables, its the same "$var" right?

Anyway, just send it through a link:

<a href="page.php?myvar=$perlvar">My Link</a>

Then you can access it from the PHP page.
 
Thanks, but that doesn't solve my problem.

I had passwords to the sql db in the file.cgi, and I want that the .php can connect to the DB, I know that is easy to make a config.php and put the info there but thats not what I need to do.

Thanks.
 
Back
Top