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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 #11 of 19 |
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]




Fri Jun 13, 2003 9:02 pm

shawn_ae
Online Now Online Now
Send Email Send Email

Forward
Message #11 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