Using Hidden Fields

G

Guest

I'm using hidden fields with the ASP tags to transfer user information in a
multi page form, so that all the data arrives at the final submission page.
This has been set up with the result going to a dtabase.

But FP2003 does not recognise the <%%> tags so using the advanced option in
the form property box, I've inserted the HTML tags.

So can I leave the <%%> tags inplace to transfer the data through to the
next section of the form? ie have both HTML tags and ASP tags on the same form
 
K

Kevin Spencer

But FP2003 does not recognise the said:
in
the form property box, I've inserted the HTML tags.

You lost me there. What exactly do you mean by "recognize?" Those are ASP
server-side scripting tags. They are needed by ASP, to run the server-side
script inside them. They are not needed in any way by FrontPage, which
ignores them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
A

Andrew Murray

I don't know if this is the way to do it but I think you need to use the
response.write command to include any HTML within ASP code.
eg
<%
Reponse.write '<form action="mail.asp" method="post">'
Response.write '<input type="text" name="Full_Name">'
%>

etc.
 
G

Guest

Each of the pages within the multipart form transfers the user info using the
ASP command <input type="hidden" name="Whatever" value="<%=whatever%>"> and
in the submission page it is recovered using Whatever=request.form("Whatever")

This works great.

But the kicker comes when I want FP2003 to transfer this info into a
database, when the saved fields tag is clicked on the options window of the
Form Properties Box, its blank. FP2003 doesn't recognise the ASP commands, it
needs the html command to operate, ie <input type="hidden" name="Whatever"
value="Whatever">

So the question is, can I use both the html and ASP versions of the hidden
field string in a form
 
K

Kevin Spencer

Hi Mike,

Just use a custom query. While at design time FrontPage may be a bit
confused by the syntax, if the HTML and ASP code are written correctly, the
hidden form fields will be there at run-time, and populated as they ought to
be. The FrontPage ASP database tools only write ASP code (at design-time) to
handle the data. The ASP code is not dependent upon any FrontPage component
to work at run-time.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top