Shoutbox

I need a little help please ^^ - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: I need a little help please ^^ (/showthread.php?tid=64235)

I need a little help please ^^ by dbgtrgr on 07-30-2006 at 04:21 PM

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?


RE: I need a little help please ^^ by Stigmata on 07-30-2006 at 05:23 PM

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">

RE: I need a little help please ^^ by Pai on 07-30-2006 at 06:15 PM

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)
      }
    }


RE: I need a little help please ^^ by dbgtrgr on 07-30-2006 at 07:17 PM

:P I posted it in the script section for a reason :\ and thx Pai, hopefully I can get that to work ^^