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)
    Is it possible to pass a variable within the the 'action' of a form?

    ie. ACTION="http://www.site.com/find.php?search"

    'There is a reason for this rather than passing it as 'hidden'.

    Also just a general question on how another how things are passed in the 'action' of the form?

    ie would there be any difference between:
    ACTION="http://www.site.com/find.php?search"
    and
    ACTION="/find.php?search"



  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you use a query string in the action attribute, then you need to use POST not GET. I do that quite a bit myself and as long as the variable names don't overlap you'll be fine.


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
  •