SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Form values and redirection

    Hey Guys,

    I'm a php coder, and I'm trying to figure out how I can post form values with a JavaScript redirection.

    Usually I just set an 'onload()' command in the body tag which then executes a normal 'window.location' function with the redirection URL.

    The problem is that I need to post some values/variables through to another PHP page. I do realize that I can use the values in the URL itself and retrieve them using $_GET but I don't want to do this. I specifically need the values to be POSTED. Is there any way to do this?

    All comments are greatly appreciated.
    Contrid.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  2. #2
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've done some research, and figured that php values cannot be used in JS, but JS can be created with PHP echo. I didn't know that.

    I'm still trying to figure how I can post form values while automatically redirecting...
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  3. #3
    SitePoint Enthusiast navtej's Avatar
    Join Date
    May 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please refer

    http://www.sitepoint.com/forums/showthread.php?t=415260

    thanks

    navtej singh dhillon


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
  •