Results 1 to 2 of 2

Thread: Any difference between these two?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Any difference between these two?

    If your posting a page to itself you can either use,

    <form method="post" action="<?php echo $PHP_SELF;?>">
    or,

    <form method="post" action="login.php">
    where login.php is the file that this "<form method......." is actually in...

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Any difference between these two?

    The first one is dynamically inserted, while the second one is hardcoded. So if you change the filename, the first one will still work, while the second one will fail. (Though this hardly ever happens that you would need to change the filename for any reason.)

    Since the rendered output is same, there is no difference as far as client is concerned.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

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



Click Here to Expand Forum to Full Width