That’s what I was trying to do, but because of the way this example program
was developed, I have to put it in the code below OR figure out a better way
to do it.

Here is my retrieval code:
-----------
Dim vjbBranch
vjbBranch = Request.QueryString("branch")
Dim vjbUnit
vjbUnit = Request.QueryString("unit")
-----------

And here is where I'm sending it to the next page to add to sql server
------------------

<form name="input" action="addroster.asp" method="get">
<table border="0" width="100%">
        <tr>
                <td align="right" width="50%">Do Not Change:</td>
                <td width="50%">
<input type="hidden" name="vjb1" value="vjbbranch" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">Do Not Change:</td>
                <td width="50%">
<input type="hidden" name="vjb2" value="vjbUnit" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">First Name:</td>
                <td width="50%">
<input type="text" name="firstname" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">Last Name:</td>
                <td width="50%">
<input type="text" name="lastname" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">City:</td>
                <td width="50%">
<input type="text" name="city" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">State:</td>
                <td width="50%">
<input type="text" name="state" /></td>
        </tr>
        <tr>
                <td align="right" width="50%">Zip Code:</td>
                <td width="50%">
<input type="text" name="zipcode" /></td>
        </tr>
</table>



<input type="submit" value="submit" id="Submit1" language="javascript"
onclick="addroster.asp" />
<br />

</form> 


Virgil Bierschwale
http://www.virgilslist.com
http://www.tccutlery.com
http://www.bierschwale.com
http://www.bierschwalesolutions.com

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sietse Wijnker
Sent: Tuesday, December 26, 2006 2:07 AM
To: profox@leafe.com
Subject: RE: [NF] Input and html

Hi Virgil,

How 'bout setting up some hidden input boxes, filling them with the values
and reading those out in your saving routine? That way there's no labeling
needed.

For parsing the querystring variables:
simple ASP test page:
<%@ Language=VBScript %>
<%
cVar1 = Request.QueryString.Item("var1")
cVar2 = Request.QueryString.Item("var2") %> <html> <body>
var1: <%=cVar1%><br/>
var2: <%=cVar2%>


</body>
</html>
calling url:
http://localhost/dnn/test/ASPTest.asp?var1=1234&var2=aaaa

Result:
var1: 1234
var2: aaaa 



greetings,
Sietse

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Virgil Bierschwale
> Sent: dinsdag 26 december 2006 5:12
> To: [EMAIL PROTECTED]
> Subject: [NF] Input and html
> 
> I've got a page that I want to grab the variables passed in the url 
> link which are branch and unit.
> 
> TO see it in acxtion, go to http://www.virgilslist.com Click on Navy 
> Click on FF-1059
> 
> You will see a list of people in this group.
> Below that there are two fields in an input tag that say "Do Not 
> Change"
> I want to grab the branch and unit and place them in those fields..
> Then I want the user to fill in the rest of the fields and click the 
> submit button which passes the variables to another page which adds 
> them to the sql server tables..
> 
> Everythings basically working except for grabbing those two fields and 
> then sending them on down the line.
> I also would like to change those two fields from a get to a say (for 
> want of a better description), but I havent found that this is 
> possible yet.
> 
> I can grab the variables no problem, but I'm not sure how to pass them 
> to the input tag.
> 
> Anybody got any ideas ?
> 
> Thanks,
> 
> Virgil Bierschwale
> http://www.virgilslist.com
> http://www.tccutlery.com
> http://www.bierschwale.com
> http://www.bierschwalesolutions.com
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.26/601 - Release
> Date: 12/24/2006
> 11:31 AM
>  
> 
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to