Search the web
Sign In
New User? Sign Up
asp-FAQ · Active Server Pages - FAQ
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
method="post"   Message List  
Reply | Forward Message #12 of 19 |
RE: [asp-FAQ] method="post"

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/






Mon Jun 16, 2003 12:45 pm

lrivetz
Offline Offline
Send Email Send Email

Forward
Message #12 of 19 |
Expand Messages Author Sort by Date

can anyone help me how to post a meeting event to two separate pages? I have a page wheren you can add an event. when clicking the submit button the page is...
lrivetz
Offline Send Email
Jun 13, 2003
3:53 pm

Hi L, ... 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...
Shawn K. Hall
shawn_ae
Online Now Send Email
Jun 13, 2003
9:00 pm

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...
Luzviminda Rivetz
lrivetz
Offline Send Email
Jun 16, 2003
2:18 pm

Hi Luzviminda, ... Perhaps the best ASP list I have seen is another I participate with here: http://groups.yahoo.com/group/active-server-pages/ In that...
Shawn K. Hall
shawn_ae
Online Now Send Email
Jun 16, 2003
5:53 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help