SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2000
    Posts
    430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This may seem like a dumb question, but is there any difference in the data sent or the way it is sent, between these two 'actions' for forms.

    action="http://www.site.com/search.php"
    and
    action="/search.php"
    ????????

    Obviously I'll use the later to reduce code if everything is the same.

    The reason I ask is that I found a site that uses a mixture of both - and I can't reason why. Either there is a difference, or it is just inconsistent coding through the site.

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2000
    Location
    USA
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think there is really a reason.
    It depends on the script. If they have a script that just takes you to that url then there would be no difference between http://www.mydomain.com/search.php and /search.php. But for external links you would have to do http://www.someguysdomain.com.
    Living the OO way.
    Hardware Help | Desperados!


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
  •