Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Date insert
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Date insert

 Post Reply Post Reply
Author
Scooter View Drop Down
Newbie
Newbie
Avatar

Joined: 12 July 2002
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scooter Quote  Post ReplyReply Direct Link To This Post Topic: Date insert
    Posted: 12 May 2003 at 3:07am

I am trying to develop a very simple message board system using Dreamweaver MX and I want to be able to date stamp the page without the user having to enter the date themselves.

The other problem I am having is when the user presses the return key an puts breaks in their text, I want the breaks to show up without having to type in < br >

thanks  

 

Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 5:31am

To date stamp the entry, have a field in your database such as dateEntered whitch will be of type date/time and will have a default value of "now()"

to allow users to enter text and have breaks in the text you would be best using a wysiwyg text editor like the one at the bottom of this page. Here is a tutorial to show you how to construct one.

http://www.devarticles.com/art/1/90/2

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 8:43am

wow... want to build a message board app and don't know how to do those simple things?

learn the basics first :-)

for the second issue, the following works:
Replace( MessageText, vbCrlf, "<br />")

Contribute to the working anarchy we fondly call the Internet
Back to Top
Scooter View Drop Down
Newbie
Newbie
Avatar

Joined: 12 July 2002
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scooter Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2003 at 12:01pm

I had thought of the "now()" but wasn't sure that it wouldn't keep bringing up the same date for every entry.

Will give it a go with the replacement text entry code...

Will definatly have to learn a bit more....  NO a LOT more...

thank    to  you both...

Back to Top
Scooter View Drop Down
Newbie
Newbie
Avatar

Joined: 12 July 2002
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scooter Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2003 at 3:16am
Sorted out the Now() bit, but is there a bit of code that will only show the date and NOT the time.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.