Is this possible?

Discussion in 'PHP' started by bartolay13, Jan 15, 2008.

  1. #1
    bartolay13, Jan 15, 2008 IP
  2. rkquest

    rkquest Well-Known Member

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    140
    #2
    The only way I can think of is by using frames.
     
    rkquest, Jan 15, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    can you give me some sample script or a link maybe...
     
    bartolay13, Jan 15, 2008 IP
  4. rkquest

    rkquest Well-Known Member

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Not a script.. just HTML

    
    <html>
    <frameset cols = "*">
    	<frame src ="http://www.google.com/" /> 
    </frameset>
    </html>
    
    HTML:
    The problem here is even if you go to external website just by following a link in the page, the user will still have your domain in their address bar.
     
    rkquest, Jan 15, 2008 IP
  5. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Solve this by setting the target attribute for external links to "_top" to get rid of the frames, or "_blank" to open in a new window:

    <a href="external url" target="_top">external site</a>
    Code (markup):
    or
    <a href="external url" target="_blank">external site</a>
    Code (markup):
    Using frames is probably your best choice. Other options are more complex:
    - XMLHttp/DHTML for all links and buttons in your page
    - Using javascript to convert all links to a POST to / with the appropriate arguments
     
    mvl, Jan 16, 2008 IP
  6. kendo1979

    kendo1979 Peon

    Messages:
    208
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    why not redirect them with all the get variables set to post variables?
     
    kendo1979, Jan 16, 2008 IP
  7. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Or you could use the $_SESSION variable

    Brew
     
    Brewster, Jan 16, 2008 IP
  8. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #8
    If you are talking about abstract script, not about DP forums, you can pass your parameters via POST method, not GET. Only GET parameters are included in URL.
     
    wmtips, Jan 16, 2008 IP
  9. mwasiqansari

    mwasiqansari Banned

    Messages:
    174
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Yes it is possible! do as what rkquest said.
     
    mwasiqansari, Jan 17, 2008 IP