Re: AAARGH! : Works with Apache (Linux) but NOT in IIS 5.0

From: Date: Mon, 07 Aug 2000 21:13:42 +0000
Subject: Re: AAARGH! : Works with Apache (Linux) but NOT in IIS 5.0
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10533@lists.php.net to get a copy of this message
$submit is not posted to the form. Try: if ($name) { // Your code here } ZAnux Networks wrote: > Hi All > > Getting MAD: > > I have the simplest of forms with a mail() call to > send the results off to my e-mail address. Works > perfectly, but in IIS 5.0 (PHP4 ISAPI) the variable > creation from the 'name=blabla' doesn't seem to work. > > I say: > if ($submit) { > echo "Whaddup Bitch" > } > > Even that doesn't work. > > Herewith the file which works in Linux, but not in > IIS5.0: > > <form method="post" action="<? echo $PHP_SELF ?>"> > <table> > <tr><td>NAME:</td><td><input type="text" > size="15" > name="name"></td></tr> > <tr><td>LAST YEAR AT GLENWOOD:</td><td><input > type="text" size="4" name="year" > value="19"></td></tr> > <tr><td>ADDRESS:</td><td><textarea cols="15" > rows="6" > name="address"></textarea></td></tr> > <tr><td>SINGLE PAYMENT: R</td><td><input type="text" > size="15" name="payment"></td></tr> > </table> > <input type="submit" value=" Pledge" name="submit"> > <? > mail("user@host.com", "Pavilion Pledge: ".$name, > "Name: $name\nYear: $year\nAddress: $address\nPayment: > $payment"); > > ?> > </form> > > __________________________________________________ > Do You Yahoo!? > Kick off your party with Yahoo! Invites. > http://invites.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#10533) next »