Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:14:23+00:00 2026-05-26T13:14:23+00:00

i am a front-end coder, so i don’t know much about ASP one of

  • 0

i am a front-end coder, so i don’t know much about ASP
one of my clients called me for a simple help and i didn’t refuse him.

What he wants is a simple text box with a submit button, and when he submits a text, lets say “Sample”, he wants the server to call http://example.com/Sample.pdf after submission.

Simply, that is what i have at the moment:

<form action="form_action.asp">
<input type="text" name="pdf" value="enter pdf id" />
<input type="submit" value="Submit" />
</form>

It would be better if i can get a working answer as i don’t have asp server on my computer, i will not be able to test it.

Any help will be appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:14:23+00:00Added an answer on May 26, 2026 at 1:14 pm

    This is a very bad idea, especially when the implementer doesn’t have an understanding of back-end coding. You are opening up the server to a whole heap of security issues.

    If you allow anything to be put in this box, what would stop me entering ../includes/dbsettings.asp for example and getting access to files I really shouldn’t have access to?

    How will you handle if the file doesn’t exist?

    Actual Answer: This is a Q&A site, so here is the answer you requested, be careful what you do with it!

    The following in it’s own ASP page should do what you want:

    <%
    Response.Redirect("/" & Request.Form("pdf") & ".pdf")
    %>
    

    You can (and should) get more complex by setting mime type, designating it as an attachment (so a download box is spawned), streaming the file and above all adding security and error checking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a SQL Server 2005 database and a classic ASP front end (don't
I have a very simple ASP.Net page that acts as a front end for
I have the following code in the front end <asp:Content ID=Content1 ContentPlaceHolderID=cphMain runat=server> <script
All front-end developers know the pain of coding for Firefox, then viewing our then
I'm a front-end developer and I was looking for opinions about the best all-round
I've inherited an ASP website with some JQuery-UI on the front end, which does
I'm developing front-end code for a web application, and ran into an odd piece
When hiring a front-end developer, what specific skills and practices should you test for?
I am a front-end developer writing a C# application to export data from an
I work with a front-end developer who writes JSP files. We have a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.