Author |
Topic |
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 03 November 2003 : 07:01:11
|
Hi, Does anyone know how i could get one of my fields in the post.asp to pre-insert the system time into it is there some code? thanks as always in advance
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 November 2003 : 07:21:50
|
Use Now() for the value of the input, from memory you need to do something like :
Response.Write "<input value=""" & Now() & """>"
that should be close. |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 03 November 2003 : 08:21:59
|
hi laser thanks for the swift response can you explain in more detail please where i insert the response.write text
here is the field i want the time inserted <tr> <td bgColor="lightsteelblue" noWrap vAlign="middle" align="right"><font face="Verdana, Arial, Helvetica" size="2"><b>Time:</b></font></td><td bgColor="lightsteelblue"><input maxLength="6" name="postal_code" size="6"></td></tr>
thanks again
|
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 November 2003 : 09:07:01
|
OK, try this :
<tr>
<td bgColor="lightsteelblue" noWrap vAlign="middle" align="right"><font face="Verdana, Arial, Helvetica" size="2"><b>Time:</b></font></td><td bgColor="lightsteelblue"><input maxLength="6" name="postal_code" size="6" value="<%=Time%>"></td></tr>
I changed it to time because I read that it is all you need. |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 03 November 2003 : 09:19:08
|
brilliant brilliant brilliant!!! that works thanks very much mate you are a star. Is there fuction for date as well? |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 03 November 2003 : 09:22:29
|
ok i changed the time to date and it works fine cheers again mate |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 03 November 2003 : 09:35:44
|
laser do you know how to add drop down menu fields and have the selected choice show up in the completed message? |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 03 November 2003 : 16:26:56
|
Easy, use <SELECT> and <OPTION> ... check out my Auto-locking MOD for an example of that code. |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 04 November 2003 : 07:00:03
|
i saw the code there laser but didn't fully understand it all as it was in relation to your autolock mod. its my wish to have a drop a down list on my post form with the numbers 1,2,3 as a choice if the user scrolls down and chooses 3 then in the message area of the post it will read severity :3 and so on. i want to be able to assign a severity code to each message (does that make sense?) Also laser i know that this is a big ask so i do appreciate any time you give to me thanks again mate. |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 04 November 2003 : 07:38:56
|
Oh, OK, different question now . If you want the sev.level in the actual message text then it is actually quite easy (assuming you don't want to edit the sev.level using the same method). I will create a little MOD for you tomorrow. I'm assuming you want the sev.level as the first line in the message ? |
|
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 04 November 2003 : 08:14:47
|
yes please mate thanks again |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 04 November 2003 : 20:04:13
|
Very interesting topic here guys... |
|
|
laser
Advanced Member
Australia
3859 Posts |
|
uraken
New Member
United Kingdom
75 Posts |
Posted - 05 November 2003 : 06:46:43
|
all fine and dandy now mate you are a star |
Edited by - uraken on 05 November 2003 15:34:48 |
|
|
|
Topic |
|