What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » I need a little help please ^^

I need a little help please ^^
Author: Message:
dbgtrgr
New Member
*

Avatar
^.^

Posts: 14
33 / Male / –
Joined: Apr 2004
O.P. I need a little help please ^^
Would it be possible to send POST data to a page which then redirects to another page, and then get the url of that page?
Countdown to Christmas: 6543 days, 16 hours, 16 minutes, 51 seconds ago
07-30-2006 04:21 PM
Profile E-Mail PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: I need a little help please ^^
umm

if you are asking for html help...

well the POST data will be used in a form yeah? and for the form to post the info to the next page, the url will be in the form's action tag..

code:
<FORM action="http://this.is.the.new.url" method="post">
07-30-2006 05:23 PM
Profile PM Web Find Quote Report
Pai
Full Member
***

w00t !

Posts: 203
Reputation: 2
– / Male / –
Joined: Sep 2003
RE: I need a little help please ^^
You can

code:
    var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.open("POST", 'http://www.url.com/script.php', true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); //if posting to a html form
    xmlhttp.send('var1=content1&var2=content2&varX=etc');

    xmlhttp.onreadystatechange = function(){
      if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
        var postResponse = xmlhttp.responseText;
        //fsResponse contains the result of the POST, so the URL is in there somewhere, depending on what method you use in your online form to redirect (may be javascript, php's header(), etc)
      }
    }

07-30-2006 06:15 PM
Profile PM Find Quote Report
dbgtrgr
New Member
*

Avatar
^.^

Posts: 14
33 / Male / –
Joined: Apr 2004
O.P. RE: I need a little help please ^^
:P I posted it in the script section for a reason :\ and thx Pai, hopefully I can get that to work ^^
Countdown to Christmas: 6543 days, 16 hours, 16 minutes, 51 seconds ago
07-30-2006 07:17 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On