Appnitro Software Forums » MachForm

Changing URL of form

(3 posts)

  1. 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 1 year ago #
  2. 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 1 year ago #
  3. 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.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.