Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Donalo2000 #1
Putting identical form fields into database
I want to add a new entry to my database..
I have the form with all the fields ready.
However for one particular field, i want to have a drop down list of what's
already in that field in the database (not a problem, a new recordset, with
DISTINCT set works fine) .
However what i also want is to have a field beside this that will allow the
user to add their own category if it's not already in the databse.
So, how can i get the insert behaviour to insert whichever of the two fields
the user has selected??
I've named both fields the same, the drop down and the text entry, but that
just seems to confuse matters!
Any help is greatly appreciated.
Donal
:beer;
Donalo2000 Guest
-
putting filenames into a database?
Given a folder that contains a bunch of .jpg images, is there a way to automate putting each file name into a separate row of a database or... -
Creating database fields from Struct(FORM)
I have a survey that has a few questions which change every month. I am looking for a way to edit the HTML only and add the relevant FORM variables,... -
Putting/retriving files into a database
Hello, its been a while since I posted/looked here... my normal email client doesn't handle newsgroups :( (ximian evolution) I was wondering how... -
Problem with putting timestamps in date fields after Fix 10 (DB2 7.2)
Hello out there, why does DB2 7.2 Fix 10 not more allow to put timestamps in date fields. In prior versions the time information was ignored.... -
Adding fields adb putting the result into another field
I'd suggest a clientside group to start with. That is all VBScript on the client, not an ASP --... -
Paul Whitham TMM #2
Re: Putting identical form fields into database
If you have two fields with the same name, the insert will take both values
and separate them with a comma which is not what you want.
What you need to do is write an IF statement that tests the second field for
a value and if one is found use that on the insert.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"Donalo2000" <webforumsuser@macromedia.com> wrote in message
news:d0naus$22o$1@forums.macromedia.com...what's> I want to add a new entry to my database..
>
> I have the form with all the fields ready.
>
> However for one particular field, i want to have a drop down list ofwith> already in that field in the database (not a problem, a new recordset,the> DISTINCT set works fine) .
> However what i also want is to have a field beside this that will allowfields> user to add their own category if it's not already in the databse.
>
> So, how can i get the insert behaviour to insert whichever of the twothat> the user has selected??
>
> I've named both fields the same, the drop down and the text entry, but> just seems to confuse matters!
>
> Any help is greatly appreciated.
>
> Donal
> :beer;
>
Paul Whitham TMM Guest



Reply With Quote

