[thelist] Perl Form to PHP Form Part II
Rich Gray
richardgray at onetel.co.uk
Tue Jul 16 08:48:01 CDT 2002
How about something like...
<html>
<body>
<?
$alliwantis = (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] :
null);
if (is_null($alliwantis) || empty($alliwantis)) {
echo "<b>Nothing selected!<b>";
exit;
}
?>
<h1>You selected - <? echo $alliwantis ?></h1>
<form action="next.php" method="post">
<input type=hidden name=domain value="<? echo $alliwantis ?>">
<input type=submit value="Confirm">
</form>
</body>
<html>
The next php script ...
<?
// next.php
echo (isset($_POST['domain']) ? $_POST['domain'] : "nowt passed");
// etc etc etc
?>
HTH
Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 16 July 2002 14:22
To: thelist at lists.evolt.org
Subject: [thelist] Perl Form to PHP Form Part II
Hi Shashank et al
This solution worked perfectly for getting the variable from the perl script
into a php file. What I am now having problems with is getting the
retrieved
info from the perl into a php 'form' so I can then pass the array to another
form?
Does this make sense?
Cheers
Andrew
Subject: RE: [thelist] Perl Form to PHP Form
<?
$alliwantis = (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] :
null);
if (!is_null($alliwantis)) {
// Do some stuff
}
?>
---
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 !
More information about the thelist
mailing list