Turn on register_globals in your php.ini file. On Tue, 14 May 2002, mail-list wrote:
> This is bothering the hell out of me. The first file is a simple form, > passing the information to the second file (send_request.php). For some > reason the variables are not passing through to the second page. I have > tried this on my desktop (Win2k, php4.latest, apache, etc.) and it will work > correctly, but when I attempt to run this on my server (RedHat 7.2, > php4.latest, apache, etc.) it will not work. I cant even echo any of the > variables. Does anyone have any ideas? > > index.php > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <title>KolbSoft Technologies - Welcome</title> > <meta name="Description" content="KolbSoft Technologies is a technology > solutions firm providing services to small and medium companies worldwide. > We develop, implement, and manage a variety of internet based solutions > allowing your company to efficiently interact with the global internet > community."> > <meta name="Keywords" content="linux, open source, asp, isp, network, web, > development, internet, application, design, e-commerce, redhat, engineering, > database, support, solutions, mysql, email, domain, php, mailbox, > integration, services, technology"> > <meta name="Revisit-After" content="7 days"> > <style type="text/css"> > BODY { background : #FFFFFF; font : 12PX Tahoma, Verdana, Arial; color : > #999999; } > TABLE { width : 80%; } > TABLE.solutions { background : #F9F9F9; border : 1px solid; } > TD { font : 13px; text-align : left; vertical-align : top; } > STRONG { color : #000000; } > STRONG.light { color : Gray; } > LI { list-style : circle; } > A, A:VISITED { color : #6194C7; text-decoration : none; } > A:HOVER { color : #000080; } > </style> > </head> > <body> > <table align="center" class="solutions"> > <tr> > <td><a href="/"><IMG alt="" src="images/logo.gif" border=0></a></td> > </tr> > </table> > <BR> > <table align="center" class="solutions"> > <tr> > <td colspan="2"><STRONG>About Us:<BR></STRONG>KolbSoft Technologies is a > technology solutions firm providing services to small and medium sized > companies and organizations worldwide. We develop, implement, and manage a > variety of internet based solutions allowing your company to efficiently > interact with the global internet community.</td> > </tr> > <tr> > <td colspan="2"><strong>Solutions:</strong></td> > </tr> > <tr> > <td><STRONG>Web Development:</STRONG><BR> > <li>New Site Design</li> > <li>Internet Application Development</li> > <li>WebSite re-design</li> > </td> > <td><STRONG>Web Hosting:</STRONG><BR> > <li>Shared</li> > <li>Dedicated</li> > <li>Internet Application</li> > </td> > </tr> > <tr> > <td><STRONG>Email Services:</STRONG><br> > <li>POP/IMAP Mailboxes</li> > <li>Discussion Lists</li> > <li>eMail Announcements</li> > </td> > <td><STRONG>Database Services:</STRONG><br> > <li>Hosting</li> > <li>Integration</li> > <li>Architecture</li> > </td> > </tr> > </table> > <BR> > <table align="center" class="solutions"> > <tr><td><STRONG>Contact Us:</STRONG><br>Want to find out more? Fill out the > following form and we will contact you shortly.</td></tr> > <tr><td> > <table> > <form action="send_request.php" method="post"> > <tr><td>Company name:</td><td><input type="text" name="company" > size="45"><BR></td></tr> > <tr><td>First Name: </td><td><input type="text" name="firstname" > maxlength="40"> </td></tr> > <tr><td>Last Name: </td><td><input type="text" name="lastname" size="30"> > </td></tr> > <tr><td>e-mail: </td><td><input type="text" name="email" maxlength="40"> > </td></tr> > <tr><td>Address:</td><td><input type="text" name="address" > size="35"><BR></td></tr> > <tr><td>City: </td><td><input type="text" name="city"> </td></tr> > <tr><td>State:</td><td><input type="text" name="state"> </td></tr> > <tr><td>Zip: </td><td><input type="text" name="zip" size="10"> </td></tr> > <tr><td>Country:</td><td><input type="text" name="country"> </td></tr> > <tr><td>Phone: </td><td><input type="text" name="phone"> </td></tr> > <tr><td>Fax:</td><td><input type="text" name="fax"> </td></tr> > <tr><td colSpan=2><BR></td></tr> > <tr><td colSpan=2>Please leave us your comments:<BR><textarea cols="50" > rows="4" name="Comments"></textarea></td></tr> > <tr><td colspan=2><input type="hidden" name="sent" value="1"><input > type="submit" value="Submit Info"> <input type="reset" value="Clear > Form"></td></tr> > </form> > </table> > </td></tr> > </table> > </body> > </html> > > > send_request.php > > <?php > $send_to = "[EMAIL PROTECTED]"; > $message = "Company Name: ".$company."\n"."First Name: > ".$firstname."\n"."Last Name: ".$lastname."\n"."Email: > ".$email."\n"."Address: ".$address."\n"."City: ".$city."\n"."State: > ".$state."\n"."Zip: ".$zip."\n"."Country: ".$country."\n"."Phone: > ".$phone."\n"."Fax: ".$fax."\n"."Comments: ".$Comments; > echo $message; > #mail($send_to, "KolbSoft Contact Form", $message, "From: $email\r\n"); > ?>WTF > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php