SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member m.wohanka's Avatar
    Join Date
    Jun 2001
    Location
    Vienna / Austria
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    page call with post variables

    Hi!


    Im completely stuck with this crap:

    I need a PHP-command, that can redirect to another
    php-page
    (in that case $PHP_SELF) with transmitting
    variables by POST method.
    (Similar to location.href in JavaScript)

    please reply to admin@omanrepro.at

    thanx in advance for kind help attempts
    >>mario

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I realize you are frustrated, but you have to convey *clearly* what you want to do. Except for the first line, your post is nearly unintelligible.

    I don't know if this will help, but you might want to check out the header() function; and use hidden form fields to pass the variables by POST to the redirected page.
    Last edited by 7stud; Jun 14, 2001 at 18:22.

  3. #3
    SitePoint Zealot
    Join Date
    May 2000
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use javascript

    Code:
    <body onload="document.form1.submit(); ">
    <form name="form1" action="http://server.com/" method="POST">
    
    <input type="hidden" name="foo" value="bar">
    </form></body>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •