Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 6th, 2004, 01:59 AM
phindile phindile is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Johannesburg, South Africa
Posts: 71 phindile User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 9 sec
Reputation Power: 5
can't display date posted

Hi there!

i have this form that a user fills out ti post a message know the thing is
i dont have a field were a user enters a date but i have a hidden field e.g

<input type="hidden" name="date" value="<%request.write=now()%>">

i was hoping that the system date will appear automatically on my database but it does'nt .

and i also have this on my connection

strDate = Request.Form("dates")
MM_editQuery = "insert into details (dates, name, surname, email, subject, msg) "
MM_editQuery = MM_editQuery & "values ('"& strDates &"','"& strName &"','"& strSurname &"','"& strEmail &"','"& strSubject &"','"& strMsg &"')"

i dont know what is it that i am doing wrong
please can any one help

Reply With Quote
  #2  
Old August 6th, 2004, 02:06 AM
manu1076 manu1076 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 5 manu1076 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
use MM_editQuery & "values ('"& strDate &"','"& strName &"','"& strSurname &"','"& strEmail &"','"& strSubject &"','"& strMsg &"')" instead

Reply With Quote
  #3  
Old August 6th, 2004, 02:37 AM
phindile phindile is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Johannesburg, South Africa
Posts: 71 phindile User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 9 sec
Reputation Power: 5
not working

Thanks for replying but it's not working it's giving me this error!

Microsoft VBScript compilation (0x800A03EA)
Syntax error
/mngome/posts.asp, line 22, column 13

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > can't display date posted


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT