473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How can I enter value based on Selected item



hii

i created a form like this
<html>
<head>
<title>ACCOUNT EXAMPLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">

<p>&nbsp;</p>
<p>&nbsp;</p>
<form name="form1" method="post" action="">
<table width="821" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="239">
<div align="center"><font size="2"><b>DATE :</b></font>
<input type="text" name="txtDate">
</div>
</td>
<td width="312"> <font size="2"><b>DETAILS :</b></font>
<textarea name="txtDetails" rows="2" cols="30">SALARY PAID
</textarea>
</td>
<td width="85">
<div align="center">
<select name="select">
<option>DEBIT</option>
<option>CREDIT</option>
</select>
</div>
</td>
<td width="102">
<div align="left">
<input type="text" name="txtAmount" value="RS 5000">
</div>
</td>
<td width="11">
<input type="submit" name="Submit" value="INSERT">
</td>
</tr>
</table>
</form>
<p>&nbsp;</p>
</body>
</html>
when the user selects debit I want the amount to go into the debit field
of the accounts table and when he users selects credit it should go into
the credit field(colum) of the accounts table

how can I do this in ULTRADEV or UD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 1254
What table are you talking about? In a database? If so, you'll use a
if-then, or a select-case, like so:
Dim sType
sType = Request.Form("YouNeedToNameYourSELECTandPutTheName Here")
'You also need to give values to the options

Select Case sType
Case "CREDIT"
sSQL = "your appropriate sql string"
Case "DEBIT"
sSQL = "your appropriate sql string"
End Select

Ray at home

"techy techno" <an**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


hii


when the user selects debit I want the amount to go into the debit field
of the accounts table and when he users selects credit it should go into
the credit field(colum) of the accounts table

how can I do this in ULTRADEV or UD

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2

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

Similar topics

0
by: Kannan.M.R | last post by:
Hi, I have a problem in assigning the selected value in the dropdown to a hidden control. It goes like this. I have a repeater control. In the repeater control’s item template, I have a...
4
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater...
3
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the...
2
by: Billy | last post by:
Change DataGrid EditControl On Data Value Hi, I have a datagrid, and on editing, I want to change the control in the third colunm based on the value of the first column. The value in the...
1
by: savas_karaduman | last post by:
There is a subform embedded into a Main Form... Subform is standing for entering data into a table... There is a combobox on the Main Form... How Combo Box value can be added into table to which...
0
by: divyabhasin | last post by:
HI I want to assign a specific value to an item in combobox and want that value to be entered in database instead of the selected item. For Ex- In the Combobox I have selected "PlayFile"...
6
by: Brandon McCombs | last post by:
Hello, I have a form that contains a listview on the left side and a column of buttons on the right side. Only some of the buttons do I want enabled all the time. The other buttons should be...
1
by: waltnixon | last post by:
I've got an MS Access query which runs fine when double clicked and returns all of the rows in a test database I'm building. I've set up a multi group report based on the query. I immediately...
1
by: Andrus | last post by:
I need to enter null value from combobox to business object property. My combobox datasource does not contain ValueMember with null value. So I tried to create combobox which stores null to bound...
0
by: JosAH | last post by:
A Simple Text-Based Menu System Read this this post; there are numerous posts like that: a newbie struggling with some sort of menu implementation. They want nested menus of course and an option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
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,...

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.