Your response is very interesting and had left me scratching my head.
That is because I have never worked with asp before. I have no knowledge with
asp.
I managed to figure out how to post the data in two different places.
I have one addmeeting.asp after clicking submit, the data is then posted to
employer/meetingschedule.asp in order for the data to be posted on a
different page is to duplicate the employer/meetingschedule.asp and named
into 'career/meetingschedule.asp'. Now, if someone entered something into the
addmeeting.asp and they hit submit it will actually post it into two the same
page with different name and location.
Now, my next question is I think your group is way too advanced for me. Any
idea where I can find a good asp ground for a very novice like me?
Thank you very much for you help.
-----Original Message-----
From: Shawn K. Hall [mailto:shawn@...]
Sent: Friday, June 13, 2003 5:03 PM
To: asp-FAQ@yahoogroups.com
Subject: RE: [asp-FAQ] method="post"
Hi L,
> can anyone help me how to post a meeting event
> to two separate pages?
> ...
> Form > addmeeting.asp
> posted > employer/meetingschedule.asp
> posted > career/meetingschedule.asp
This type of thing would be ideal for XML on the server. A form can
only post to a single location - but that location can do anything it
wants to with the data. For example, post to /meetingschedule.asp and
in that use the following code:
'// ========================================================
<%
Response.Buffer = True
Dim oXml1, oXml2
'[Form 1]
' post the data
Set oXml1 = Server.CreateObject("Microsoft.XMLHTTP")
oXml1.Open "POST", "/employer/meetingschedule.asp", False
oXml1.Send Request.Form()
' return
Response.Write oXml1.responseText
Set oXml1 = Nothing
'[Form 2]
' post the data
Set oXml2 = Server.CreateObject("Microsoft.XMLHTTP")
oXml2.Open "POST", "/career/meetingschedule.asp", False
oXml2.Send Request.Form()
' return
Response.Write oXml2.responseText
Set oXml2 = Nothing
%>
'// ========================================================
This will enable you to post to two different locations from the
initial location. BUT, of course, why not just write it to do
everything from the first page in the first place, instead of
involving unreliable http traffic to hit it's own server?
Another option, assuming that you're running W2K+ and it's on the same
server & domain - use:
Server.Execute ("/page1.asp")
Server.Execute ("/page2.asp")
...to have the same effect without the round trip.
Regards,
Shawn K. Hall
http://ReliableAnswers.com/
---
[This E-mail scanned for viruses by Declude Virus]
'===========================================================
Archive : http://ReliableAnswers.com/YG/msg?asp-faq
Files : http://ReliableAnswers.com/YG/files?asp-faq
Group : http://ReliableAnswers.com/YG/group?asp-faq
Subscribe : http://ReliableAnswers.com/YG/sub?asp-faq
Unsubscribe : http://ReliableAnswers.com/YG/unsub?asp-faq
Attachments : Not Permitted
'===========================================================
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/