Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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)

  #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



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





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