I’m currently trying to test a polling system on my localhost using MAMP.
The page on which the poll appears is in a valid php page and appended with the .php extension, according to the instructions.
I have several pages on which you can vote for your favourite piece of artwork. So for example I am linking to these pages from an HTML page in the normal way
<a href="pollPages/myPoll.php">Click here to vote</a>
The problem is that when clicking the link instead of opening the php page Firefox displays a dialogue box asking whether I want to open the file with my default application or save the file.
It was working before but now Im not sure if this is a problem with MAMP or my markup is incorrect.
I hope i’m posting in the right section and your help is most appreciated.
If the latter, then there is your problem - access it through the server. If the former, then somehow PHP does not seem to be configured properly, OR your file name is queered somehow. myPoll.pphp etc.
Can you access myPoll.php directly without clicking the link? (type it in)