View Single Post
  #1 (permalink)  
Old 08-15-03, 01:42 AM
Arctic Arctic is offline
Wannabe Coder
 
Join Date: Jul 2003
Location: BC, Canada
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Help with radio buttons and uploading

Hi, im trying to make my upload page do this. I have 2 sections for files on my server. I want 2 radio buttons, when radio button 1 is clicked is will show the form for uploading files to the downloads section below it. When radio button 2 is clicked it will show the form for uploading (.zip) scripts to the scripts section below it. Any help on this would be great.

<%@ Language=VBScript %>
<%
option explicit
Response.Expires = -1
Server.ScriptTimeout = 600
%>
<HTML>
<HEAD><TITLE>FilesDomain.net - Upload</TITLE>
<link rel=stylesheet type="text/css" href="../style.css">
<script src="../noclick.js" type="text/javascript"></script>
</HEAD>
<BODY background="main_bg.jpg">
<%
Dim filesChecked, scriptsChecked, files, scripts
files="<!--#include file="files_upload.asp"-->"
scripts="<!--#include file="script_upload.asp"-->"

filesChecked = ""
scriptsChecked = ""

SELECT CASE Request.Form("type")
CASE "files"
filesChecked = "CHECKED"
CASE "scripts"
scriptsChecked = "CHECKED"
END SELECT
%>
<font size="2pt">
Pick what type of file you would like to upload:<BR>
<FORM Method=Post>
Files: <INPUT Type=Radio Name=type Value=files <%= filesChecked%>>
Scripts: <INPUT Type=Radio Name=type Value=scripts <%= scriptsChecked%>>
</font>
<INPUT Type=Submit class="button" value="Change">
</FORM>
<%= Request.Form("type")%>
</BODY>
</HTML>
__________________
http://www.streamsearch.ca - Live stream search engine. Find radio stations to listen to and TV channels to watch!

http://www.machonemedia.ca - Mach One Media web development and media services.

Last edited by Arctic; 08-15-03 at 02:47 PM.
Reply With Quote