Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2008, 02:44 AM
Authorized User
 
Join Date: Dec 2007
Location: , , Vietnam.
Posts: 59
Thanks: 9
Thanked 0 Times in 0 Posts
Default Upload image

Helo everybody
i have very fun to meet you.Have a good day.
I have some problem my database
such as:If i want to submit form that
all the field in my database is saved
My database:
Table name:News
Field:NewsTypeId,NewsTittle,Image
when i submit form and then all the field is save
Please help me to do that or let me to know the page web to do like that.
Thanks so much to your help
Regards
Hoang Phuc
(some mistake with the text)

Reply With Quote
  #2 (permalink)  
Old January 17th, 2008, 08:48 AM
Friend of Wrox
Points: 489, Level: 7
Points: 489, Level: 7 Points: 489, Level: 7 Points: 489, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2006
Location: Berkshire, United Kingdom.
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post
Default


Hoang,

One way of achieving this is to use a query string

Example would be on the page you have your form say the page name is
inputnews.asp

In inputnews.asp you would add

Code:
<%
Content = "" 'Clear the Content string
QStr = Request.QueryString("update")

if QStr="success" then
        Content = Content & "<p>News input updated</p>"
Response.Write(Content)     ' Paste the contents in page
%>
Then in your page that inputs the new form data after the update function add

Code:
<%
    'Re-direct to inputnews.asp
    response.redirect("inputnews.asp?update=success")
%>
That should provide the update message in inputnews.asp

Hope this helps

Aspless

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
how to upload image? vipin k varghese BOOK: XSLT Programmer's Reference, 2nd Edition 3 June 3rd, 2008 02:53 AM
Image Upload spbharti Pro PHP 3 February 3rd, 2006 08:20 AM
Image upload cutesneakers PHP How-To 2 January 5th, 2005 08:00 AM
Image upload Pallav Javascript How-To 8 October 21st, 2004 12:14 AM



All times are GMT -4. The time now is 09:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.