Realmac Software

Welcome to the RapidWeaver Community Forums, where you can chat with RapidWeaver users from around the world!

Use form to build URL

Daniel ODaniel O SydneyPosts: 2Members
Hi - I'm trying to work out if there is a way to use a web form to complete a URL.

One of my clients would like clients to download a file (in this case a statement as a PDF).

The statements are stored in a folder:
http://mysite.com/statement/XXX.pdf (XXX being a client ID).

Is it possible to use a form script to complete this URL?
The user would fill in their client ID in the box and click 'Submit'.

I'm new with forms but have tried the following and it didn't work as planned.

[form method="GET" action="http://mysite.com/statement/"client".pdf"]
Client ID: [input type="text" name="client" /]
[input type="submit"]
[/form]

Any suggestions?

Thanks,
Daniel

Comments

  • bmanbman Fort Worth, TXPosts: 695Members
    Hi Daniel,

    Yes, this is possible with a little bit of script writing. Would you be willing to pay for the time it takes to write and debug this functionality?

    Thanks,

    Bill (the info guy)
    RW Vault - Theme Gallery/Theme Vault

    Stack-Its - Innovative Stacks
  • Daniel ODaniel O SydneyPosts: 2Members
    Hi Bill.
    Thanks for your response.

    I got it working with a Javascript so all sorted.

    Thanks,
    Daniel
Sign In or Register to comment.