Form Redirect using jQuery or PHP instead of .ASP?
# November 16, 2009 at 4:23 pm
I’m a photographer who designs, develops and maintains his own web site. For years I’ve been using the following bit of code to redirect my clients from a single-field form to the directory containing their photo proofs. I’ve been using .ASP to do this.
Here’s a link to my site: http://www.ryersonphotography.com
The form in question is on the home page in the Client Login section in the bottom right.
Here’s the form code:Code:
And here’s the code for the showproofs.asp redirect:Code:< %response.redirect("/clients/" & request("sessionid"))%>
Basically, the "sessionid" refers to the name of a folder in the "clients" directory. My client enters their session id (usually their name) in the form and submits it, the form calls the "showproofs.asp" file and the redirect locates the index.html file within the directory referenced in the form and it displays the page in the browser. Simple and easy. I don’t need it to be super-secure, just not instantly accessible to anyone who browses to my site.
What I love about it is that, much like the PHP class ImgBrowz0r, there is no additional coding each time I want to set up a new gallery. I already have an automated process for creating the galleries and once I create a new folder in the "clients" directory, I’m done. The name of that new folder becomes the "sessionid".
Here’s my problem: I’m switching to a hosting service that does not run .ASP on their servers. Fine. No big deal. What I want is another way to do this that doesn’t require .ASP. I would prefer something like jQuery or PHP but I’m not an experienced enough developer to get either of those to do what I want without help. Any suggestions are welcome.
Thanks in advance!
You must be logged in to reply to this topic.