This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Changing URL of form
Started 15 years ago by ddemaio | 6 posts |
-
Hi. My form URL ends with "view.php?id=1" and the second forms ends with "view.php?id=2" etc.
The problem with this kind of URL is that the user can manipulate it by just changing the number at the end and get a form that I don't want him/her to have access to. So how do I change the URL into something more meaningful, like "signupform.php"???
Thanks.
Don
Posted 15 years ago # -
Changing the URL wouldn't be that simple, you would have to rename the file(s); but this would not gain you an advantage as the user can still manipulate the "id=x" portion of the address
Machform loads the *form* itself from a database (not just the data submitted)therefore it requires the id=x appended because it's SQL query works of that, to load the correct form.
I think in the next version it will be coming out with some more advanced password protection, multiple user type features, so this might be the way around your issue.
What is the cause of your concern regarding the user possibly changing the id to something else?
I just tried the service http://tinyurl.com/ in the offhand that it might be what you need but it merely redirects to the actual URL and doesn't mask it from the user (therefore they can still change the "Id" value).
For example, take a look here: http://tinyurl.com/6wv9hh (click this link) and see it redirects to my Machform form with the actual url of http://www.murraywebs.com/machform/view.php?id=18 - without actually displaying the long URL.
Edit:
On the other hand, I just tried it and it doesn't do what I thought; it just redirects literally to the long URL. "Tiny URL" is just so you don't have to continually enter the long URLS with all those sort of codes you typically see on some database driven sites (like Microsoft).One way to mask the URL is to use a frameset, but frames are deprecated technology and not really current as far as modern DocTypes and Browsers are concerned (an also cause problems with search engines).
So my answer probably hasn't helped, sorry.....
Posted 15 years ago # -
Actually, you guys could use the "Advanced Form Code" for this purpose.
Simply create a blank PHP file, name it to whatever you like, say it "signupform.php" ... then paste the Advanced Form Code there.
This way your users won't notice the actual view.php?id=x URL.
MachForm Founder
Posted 15 years ago # -
I tried doing this but when I copy the code I get a page without the template I just created with my theme builder. How can I fix that. I would like a different url but also want to keep the design of the theme.
thanx, Chris
Posted 12 years ago # -
Chris -- if you are using v3 already, you can use the "PHP Form File" option instead. It will keep the design of the theme and have its own URL.
MachForm Founder
Posted 12 years ago # -
Yuniar - You just made me a happy men! THANKS
Posted 12 years ago #
Reply
You must log in to post.