Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with PHP problem
#1
What I want to do is select a month and then have a PDF file names SL_mmm.pdf display
where mmm is the month passed from the dropdown.  Both the *.php file and the *.htm file
are in the same directory with the PDF file in a subdirectory under that.

What is happening is on the htm page I am picking Feb and hitting Go, then
the browser shows website/PVETest.php?month=Feb
Then I get page not found 404 error but it is there.
It is like the htm page is not really getting to the PHP file.

See attachment for PHP.ini and fcgiext.ini info

Environment:

Software loaded and verified
Win Server 2003
IIS 6.0
PHP 5.4
VC9 x86
FastCGI
WinCache 1.3
Visual C++ Redistributable files for X86

PHP has been tested and works from command prompt
All FastCGI changes have been made per documentation

HTML code
<html>
<body background="/images/GunMetal.gif" bgcolor="#FFFFFF" text="#000000" link="#669999" vlink="#999900" alink="#3366CC"><font face="Arial, Helvetica"></font>
<form method="PUT" action="PVETest.php">
<select name="month">
<option>Mar</option>
<option>Feb</option>
<option>Jan</option>
</select>
<input type="submit" value="Send">
</form>
</body>
</html>


PHPTest.php code
<?php
// The URL of the form page. The PHP script
// redirects to it if someone loads the script
// directly without submitting the form properly.
$url='href:/PVEHomeTest.htm';

if(isset($_POST['month']))
{
   // should return a URL like "https://foo.com/Mar.pdf".
   $url='https://www.loventhal.com/Public/SL'.$_POST['month'].'.pdf';    
}
header("Location:$url");
exit;
?>


Attached Files
.txt   Posting.txt (Size: 3.34 KB / Downloads: 743)
Reply

#2
Hi slovey

I don't think too many people here are knowledgeable when it comes to PHP but the guys over at StackOverFlow will probably be able to help more with it.

Incidentally,
Quote:Je n'est pas une boulangerie forte
actually means;
Quote:I is not high bakery
just FYI Wink
Reply

#3
Yeah, you might need to go to a php related support forum.
<left><form action="https://www.paypal.com/cgi-bin/webscr" method="post">If you are satisfied with my help, consider a donation. Thank you so much for your continued support! 
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="Y4ZDLXGFS4F8Q">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
</form>

   </div></left> 
Reply

#4
Do you still require help with this?
JM IT Services
Mobile PC & Laptop Repair
www.jmitservices.co.uk
We also provide remote support.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 Melroy van den Berg.