[thelist] CGI and PHP

Mark Joslyn mark.joslyn at solimarsystems.com
Thu Feb 7 13:51:01 CST 2002


This is what I have:

<FORM METHOD=POST ACTION="/cgi-t/form.cgi" name="SPD_DemoForm"
onSubmit="return validForm(SPD_DemoForm)">
<INPUT TYPE=HIDDEN NAME=to VALUE="myemail at me.com">
<INPUT TYPE=HIDDEN NAME=from VALUE="myemail at me.com">
<INPUT TYPE=HIDDEN NAME=subject VALUE="SP/D Demo CD Request">
<INPUT TYPE=hidden NAME="print_blank_fields" VALUE="1">
<INPUT TYPE=HIDDEN NAME="redirect" VALUE="SPD_Demo_Response.php">
<INPUT TYPE=hidden NAME="required"
VALUE="Name,Company,Mailaddress,City,State,Postalcode,Telephone">

	<table cellspacing="0" cellpadding="0" border="0" width="325">
		<tr>
		<td align="left" valign="top" rowspan="100%"><img
src="index/spacers/clear_spacer.gif" width="30" height="3" border="0">
		</tr>
          	<tr>
            <td width="100" valign="top"><div class="cform">Name:</div></td>
            <td width="329"><input name="Name" type=TEXT
maxlength="100"><font color="#06957A">*</font></td>
          	</tr>

		blah...blah..blah.

If the page is redirected, as shown above, do the variables carry over? I
can't seem to capture the variable Name.

Please help.

Thanks,

markJ

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Kristy Frey
Sent: Thursday, February 07, 2002 11:45 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] CGI and PHP



--- Mark Joslyn <mark.joslyn at solimarsystems.com> wrote:
> I have a form that is processed using a CGI script. The form is then
> redirected to a "Thanks" PHP page.
>
> How can I pass the variable "Name" to the PHP page after it is processed
by
> the CGI script? Can I use the query string?

Sure, I pass variables to php pages in the query string (although when i
can, I prefer to pass
variables by doing a POST to my php pages)

=====
----------------------------------------------------------
I apologize for the ads/links below - Yahoo put them there.
That's what I get for using free mail
----------------------------------------------------------

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
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