Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 08-22-2005, 06:59 AM   #1 (permalink)
SeetaramaRaju
Registered User
 
Join Date: Aug 2005
Posts: 8
SeetaramaRaju is on a distinguished road
sending dropdown list value as form parameter

here is a sample code where iam trying to send a dropdown list value as form parameter

<table>
<tr>
<TD>REGION</TD>
<TD>

<!--<select name="Region">
<option value="URL">113</option>
<option value="URL">137</option>
</select> -->


<input type="text" name="Region">


</td>
<td>
<input type = "submit" value = "Generate Report">
</td>
</tr>
</table>


in the above code if comment select part and use text box, the second page is taking the parameter when i say 'param.region'. But when i use select and
use the same param.region second page is not taking the value. it instead takes it as 'url'. can anybody tell me how ia can send a dropdown value as form parameter

thanks
__________________
SeetaramaRaju is offline   Reply With Quote
Old 08-26-2005, 06:02 PM   #2 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
what kind of data are you trying to collect?
like is region an area in a country?
is the code you prvided part of a larger form?
How are you going to use the info?

If you are using it to send the user to a page depending what region they put in you could put:
Code:
<script language="JavaScript"> function gotoRegionPage() { window.location = document.formName.Region.value; } </script>
then add an onClick event to the submit button that calls gotoRegionPage()
Scott
__________________
smckittr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending parameter in a link SeetaramaRaju HTML, XML, Javascript, AJAX 4 08-19-2005 01:02 PM
Passing Values from Popup Form to Main Form chrislopezz PHP 7 03-28-2005 12:45 PM
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 07:52 PM
Python Lists Overview inkedmn Python 3 03-25-2004 01:38 PM
Dropdown list in HTML JoeyJoeJo HTML, XML, Javascript, AJAX 8 02-26-2003 11:00 AM


All times are GMT -8. The time now is 11:02 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle