Menu

#1 Search box not posting to correct module

open
nobody
None
5
2003-07-16
2003-07-16
Anonymous
No

The directory name, "PNAmazon", is determining the
value of $ModName on line 18

$ModName = basename ( dirname ( _FILE_ ) );

but line 109 (the search box) was hardcoded to post to
a module named "Amazon" and would bring up a 404 error.

Simply changing the code on line 109 to

<input type="hidden" name="name" value=<?php echo
"$ModName";?> />

solves the problem. There may be other instances where
the module name was hardcoded and, of course, they need
to be fixed as well.

Slugger

Discussion


Log in to post a comment.