473,698 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Persits.Upload. 1 and multiple checkbox

I have an ASP script which is used to upload files with Persits.Upload. 1
object. But I can't get the values from mutliple checkboxes in the form like
normally.

<form method="post" ENCTYPE="multip art/form-data"....>
<input type="checkbox" name="language" value="English" >English
<input type="checkbox" name="language" value="Spanish" >Spanish
<input type="checkbox" name="language" value="Chinese" >Chinese

Please advice!
Jan 16 '06 #1
4 13200

Vanessa wrote:
I have an ASP script which is used to upload files with Persits.Upload. 1
object. But I can't get the values from mutliple checkboxes in the form like
normally.

<form method="post" ENCTYPE="multip art/form-data"....>
<input type="checkbox" name="language" value="English" >English
<input type="checkbox" name="language" value="Spanish" >Spanish
<input type="checkbox" name="language" value="Chinese" >Chinese

Please advice!


What's your code to retrieve those values? You can't use request.form,
you need to create the Persits object such as

Set Upload = Server.CreateOb ject("Persits.U pload.1")
thelanguage=upl oad.form("langu age")

Jan 16 '06 #2
Larry,

Here is my test code:

<%
if Request.ServerV ariables("REQUE ST_METHOD") = "POST" then

Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.IgnoreNo Post = True
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 3048576
Upload.SaveToMe mory

Response.Write "Upload.Form("" language""): " & Upload.Form("la nguage") &
":<BR>"

else
%>

<form method="post" action="testche ckbox.asp" enctype="multip art/form-data">
<input type="checkbox" name="language" value="English" checked>English <br>
<input type="checkbox" name="language" value="Spanish" checked>Spanish <br>
<input type="checkbox" name="language" value="Chinese" checked>Chinese <br>
<input type="submit" name="submit" value="submit">

</form>

<% end if %>

It only get the first checked values, but not all checked values. For
example, if I checked English and Spanish, only English is returned from
Upload.Form("la nguage"). Please advice.

Vanessa

"Larry Bud" wrote:

Vanessa wrote:
I have an ASP script which is used to upload files with Persits.Upload. 1
object. But I can't get the values from mutliple checkboxes in the form like
normally.

<form method="post" ENCTYPE="multip art/form-data"....>
<input type="checkbox" name="language" value="English" >English
<input type="checkbox" name="language" value="Spanish" >Spanish
<input type="checkbox" name="language" value="Chinese" >Chinese

Please advice!


What's your code to retrieve those values? You can't use request.form,
you need to create the Persits object such as

Set Upload = Server.CreateOb ject("Persits.U pload.1")
thelanguage=upl oad.form("langu age")

Jan 16 '06 #3

Vanessa wrote:
Larry,

Here is my test code:

<%
if Request.ServerV ariables("REQUE ST_METHOD") = "POST" then

Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.IgnoreNo Post = True
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 3048576
Upload.SaveToMe mory .....

Vanessa, you need to read the manual. I don't have Persits installed
on my machine, but since you do, you should have the Form3.asp demo
page that they're talking about.

http://www.aspupload.com/manual_simple.html
From the section titled

"Referencin g Individual File and Form Items"

The Upload.Form collection is not entirely identical to Request.Form as
******it handles multi-select form items such as <SELECT MULTIPLE>
differently.*** ****

A multiple checkboxes with the same name are probably handled like a
select multiple.

Jan 16 '06 #4
Got it! Thanks Larry! :) You save my day!

"Larry Bud" wrote:

Vanessa wrote:
Larry,

Here is my test code:

<%
if Request.ServerV ariables("REQUE ST_METHOD") = "POST" then

Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.IgnoreNo Post = True
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 3048576
Upload.SaveToMe mory

.....

Vanessa, you need to read the manual. I don't have Persits installed
on my machine, but since you do, you should have the Form3.asp demo
page that they're talking about.

http://www.aspupload.com/manual_simple.html
From the section titled

"Referencin g Individual File and Form Items"

The Upload.Form collection is not entirely identical to Request.Form as
******it handles multi-select form items such as <SELECT MULTIPLE>
differently.*** ****

A multiple checkboxes with the same name are probably handled like a
select multiple.

Jan 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10563
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of course, we can use <input type=file ...> multiple times and then submit once. But this is not what I want, because we have to click "browse" button several times to select multiple files before submit in this way.) "Upload multiple files PER TIME", I...
0
2830
by: dann2 | last post by:
hello, i try to upload in an access db two pictures at the same time. i use the adjusted sample code from persits. it looks like this: ... '<% ' Create an instance of AspUpload object 'Set Upload = Server.CreateObject("Persits.Upload") ' Capture uploaded file. Save returns the number of files uploaded 'Count = Upload.Save(Path) 'If Count = 0 Then 'Response.Write "message"
0
3111
by: TechnoAtif | last post by:
<?php include "dbconnect.php"; include "commonFunc.php"; ?> <!----------------------------------> <table width="80%" border="1" cellpadding="2" cellspacing="0"> <tr > <td colspan="2"><p>
0
2605
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
1
10487
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
11
15279
by: TechnoAtif | last post by:
INSERT AND UPDATE MULTIPLE CHECKBOX DATA USING PHPMYSQL OR JAVASCRIPT Hi All I want to check the multiple checkboxes update them after revisiting that page. I am taking the name as name=type..in the form of array..but on checking it the result in the database simply gives the world 'array'.i want multiple checkboxes to be checked and updated simultaneously.. and the query to insert the checkbox value has to be included along with...
43
9887
by: bonneylake | last post by:
Hey Everyone, Well this is my first time asking a question on here so please forgive me if i post my question in the wrong section. What i am trying to do is upload multiple files like gmail does. I found a script that does this on easycfm.com (Topic 13543). But anyway when i try to upload multiple files it will create multiple records in my database (like it should), but it wont upload multiple files. What ever file i choose to upload...
0
1283
by: Mary arilene | last post by:
Hi, I currenlt building a form and would like some help validating multiple checkboxes and receiving values. I'm using two two pages there asp pages. HTML code(with the body tag) <tr bgcolor="#FFFFFF"> <td valign="top"><strong> How did you find out about us? </strong></td> <td align="left">
1
3796
by: Raywin | last post by:
Hello everyone, i am facing a problem with multiple checkbox. I have set few checkbox as a selection, then send to database for search result. For example the checkbox including hotel features like, aircont, 24 hour reception, swiming pool etc. after tick the check box , will send to result page to get the Hotel match with the selection checkbox. But my level only can make just one selection and get the result, if choose more than 1...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7716
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.