[thelist] Perl Form to PHP Form

Andrew Maynes andrew at uk-webdeveloper.co.uk
Fri Jul 12 06:13:01 CDT 2002


ok something is cooking now!  received this:

Array ( )

help!

Andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Friday, July 12, 2002 11:54
To: thelist at lists.evolt.org
Subject: RE: [thelist] Perl Form to PHP Form


Andrew
Globals off is the default for PHP v4.2.x  - it's for security reasons so if
you feel your site is not likely to be subject to an attack (eg an intranet
site)  then you can always switch them on in your php.ini file. However, the
$_GET array is a so-called superglobal and is always available whether
globals are off or on - try putting <? print_r($_GET) ?> to see what query
string is being passed by the perl script.... if it is an empty array then
the query string is not being formed correctly.
Cheers
Rich

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 12 July 2002 11:33
To: thelist at lists.evolt.org
Subject: RE: [thelist] Perl Form to PHP Form


Rich

globals are off do you think I need them on... you dont know a site with a
simple tutorial on this do you?

I have just tried the $_GET['namea']
and it didn't work

Andrew


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Friday, July 12, 2002 10:43
To: thelist at lists.evolt.org
Subject: RE: [thelist] Perl Form to PHP Form


Andrew
Assuming you're on v4.2.x of PHP and with globals off you will need to use
$_GET['namea'] in your PHP script to access the values submitted by the Perl
script.
HTH
Rich

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 12 July 2002 10:12
To: thelist at lists.evolt.org
Subject: [thelist] Perl Form to PHP Form


Answers I have received for this haven't help!  are there any php dudes
there
that know how,
if ($orderform) { $hyperlink = "<a href=\"$orderform?$namea.$nameb\">Order
Now</a>"; }

within a perl script can be sent to a .php script

Help appreciated

Andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Jeff Wilhelm
Sent: Thursday, July 11, 2002 08:35
To: thelist at lists.evolt.org
Subject: Re: [thelist] PERL to PHP Form


Well, in the .pl you'd probably have a link to the PHP form, correct?

In the link to the PHP make sure you include the variable name and value
that you want to pass to the PHP.

So the link might read something like:
<a href="/file.php?name=Jeff">Click Here!</a>
That will pass the value Jeff to the php file in the form of a variable
named name.

To access it in the PHP file you could just use <?=$name;?> which would echo
the value Jeff to the screen.

Jeff


----- Original Message -----
From: "Andrew Maynes" <andrew at uk-webdeveloper.co.uk>
To: <thelist at lists.evolt.org>
Sent: Thursday, July 11, 2002 3:28 PM
Subject: RE: [thelist] PERL to PHP Form


> jeff I about to build the form which will be a basic form that the user
will
> fill out the details I just want one of the field to contain info from a
.pl
> script could you show me a little bit more what you mean, I wont be having
> globals on?
>
> cheers Andrew
>
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Jeff Wilhelm
> Sent: Thursday, July 11, 2002 07:26
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] PERL to PHP Form
>
>
> > I have a perl script and want to pass a variable $domain to a php form
> could
> > someone show me how to do this please?
>
> Andrew, depending on your php settings (globals on, etc...) you can
usually
> just call the form like:
> site.php?variable=value
>
> Jeff
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02




More information about the thelist mailing list