Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 insert date and time to field
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

uraken
New Member

United Kingdom
75 Posts

Posted - 03 November 2003 :  07:01:11  Show Profile
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  Show Profile
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.
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 03 November 2003 :  08:21:59  Show Profile
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
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 November 2003 :  09:07:01  Show Profile
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.
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 03 November 2003 :  09:19:08  Show Profile
brilliant brilliant brilliant!!! that works thanks very much mate you are a star. Is there fuction for date as well?
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 03 November 2003 :  09:22:29  Show Profile
ok i changed the time to date and it works fine cheers again mate
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 03 November 2003 :  09:35:44  Show Profile
laser do you know how to add drop down menu fields and have the selected choice show up in the completed message?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 03 November 2003 :  16:26:56  Show Profile
Easy, use <SELECT> and <OPTION> ... check out my Auto-locking MOD for an example of that code.
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 04 November 2003 :  07:00:03  Show Profile
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.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 04 November 2003 :  07:38:56  Show Profile
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 ?
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 04 November 2003 :  08:14:47  Show Profile
yes please mate thanks again
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 04 November 2003 :  20:04:13  Show Profile  Send StephenD a Yahoo! Message
Very interesting topic here guys...
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 04 November 2003 :  21:34:20  Show Profile
Check out Inject Message Text MOD
Go to Top of Page

uraken
New Member

United Kingdom
75 Posts

Posted - 05 November 2003 :  06:46:43  Show Profile
all fine and dandy now mate you are a star

Edited by - uraken on 05 November 2003 15:34:48
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07