Forums

ASP

This topic is locked

ASP form

Posted 20 Mar 2008 21:21:49
1
has voted
20 Mar 2008 21:21:49 earl kim posted:
we have an asp form page. we have abox for customer to insert key number. if teh customer doesnot have a key and leaves this box blank. we would like to aumatically insert a key number that we supply.

can anyone please post asp code for the above?

thank you

Replies

Replied 23 Apr 2008 00:58:44
23 Apr 2008 00:58:44 student 101 replied:
What you are asking does not conform to ASP coders world wide.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Give me the code please I have a problem <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle> <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Have you attempted to try and achieve what it is that you want?

This could be done with Javascript, ASP, PHP or any other language / script you code in.


Cheers



[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]
Replied 08 May 2008 18:27:40
08 May 2008 18:27:40 dave blohm replied:
typically people come here looking for help and guidance...not to be chastised or told "it can be done a bunch of way" without actually telling them how to do it...

do you have existing code? are you inserting this into a db? what are you doing with it? this would likely be handled well with javascript

<b>
function check_key(){
if(document.getElementById('myField').value==''){
document.getElementById('myField').value= 'newvalue' //where newvalue is what you want to populate the form field with
}
}
</b>

and in the form tag add

<b>onclick="check_key()"</b>


Edited by - daveblohm on 08 May 2008 18:29:30
Replied 08 May 2008 19:05:55
08 May 2008 19:05:55 student 101 replied:
Google is good helper.
Does not look like earl is coming back.



[DWMX 2004]|[DWMX 8]|[DW CS3]|[MySQL]|[SQL]|[Access ]|[ASP/VBScript]|[PHP]|[XP-Pro]

Edited by - westmatrix99 on 08 May 2008 19:06:33

Reply to this topic