Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2004, 06:34 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Specifying SSIs from HTML form

Hi there

I wanted to use a hidden form field from one ASP/HTML page, such as:

<input type="hidden" name="mySSIfile" value="MyTextFile.txt" />

The value of which, on submission to my target ASP page, could be specified as an SSI file and generated into the target page. So I wrote in the target page:

<%
strDetails = Request.Form("mySSIfile")
response.Write("")
%>

But this doesn't actually execute the #include command. I've tried all different ways of doing this I can think of, like breaking out of the <% %> delimiters etc, but can't make it work. Is it possible to do this, or am I missing something obvious?



 
Old December 29th, 2004, 09:08 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Your code won't work and it would throw an error only .. its because in ASP the include directives are resolved before the server-side script portions are processed.

But there are work arounds which are neatly expalined in this article
http://www.asp101.com/articles/micha...es/default.asp

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old December 29th, 2004, 10:13 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
     It is not possible through include directives. It is possible through server.execute("") method.
Thanks
Suresh






Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting an HTML Form to ASP.Net Form k_alidxb75 ASP.NET 1.x and 2.0 Application Design 0 November 30th, 2006 03:26 AM
html form - save help bunnyhead HTML Code Clinic 2 January 24th, 2005 05:55 AM
Servlet and HTML form qiezi J2EE 2 August 21st, 2004 04:26 AM
E-mail HTML Form rdmapes Beginning PHP 4 December 18th, 2003 12:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.