cms659
75.***.***.***Hello all and I have a question...
Hi:I am new to this site and would like to say "HELLO EVERYONE" and after reading some of the posts here it appears that there is someone here who can answer just about anything. I feel rather silly here as I am pretty proficient at many many aspects of PHP myself. This one, try as I may, I haven't quite figured out.
Here is the problem (going to try to explain it with an example):
Say your website is: 'http://www.mysite.com'
You create a form in your website that when submitted (whether using method="post" or method="get" does not matter but for the sake of this example I'll use 'post').
The action in the form is as follows:
<form action="00001.php" method="post">
(this is assuming all the files you'd take someone to are in the same directory on the website)
Now for the problem:
I want to md5 mask the page the action statement takes you to. Obviously, I can create a variable like this:
$a="00001.php";
and then md5 mask the variable:
$a = md5($a) - and then change the 'form' command to read:
<form action=$a method="post">
The form does execute properly with the problem being the 'action' attempts to open the md5 value php file, which obviously does not exist (i.e.-- '00001.php' converts to 'ddb7d4fbb4fc8d5aaa23a7438e39e756' so the 'action' when the form is submitted attempts to open: 'http://www.mysite.com/ddb7d4fbb4fc8d5aaa23a7438e39e756' - a file which is not existent but the original file '00001.php' is).
Can anyone help me get a around this? Would appreciate any suggestions.
Thank you,
Chuck