View Poll Results: How can i search within a php page by clicking several buttons?

Voters
1. You may not vote on this poll
  • vb code

    0 0%
  • you may post attachment

    0 0%
  • IMG code

    1 100.00%
Multiple Choice Poll.
Results 1 to 6 of 6

Thread: Php

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Location
    Mirpur,Dhaka,Bangladesh
    Posts
    6

    Php

    hi
    i develope a web site. i use country search,buttons are in DHTML so if i connect php pages for each country then it wll need over 50 pages.How can i use the coding that wll work only one php pages within conditions i.e.the if else conditions will apply from which button clich and query will follow the search.
    Pls i need coding & the logic for the search.
    Thanks.........
    mmrk

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Php

    Originally posted by mrahmank12
    hi
    i develope a web site. i use country search,buttons are in DHTML so if i connect php pages for each country then it wll need over 50 pages.How can i use the coding that wll work only one php pages within conditions i.e.the if else conditions will apply from which button clich and query will follow the search.
    Pls i need coding & the logic for the search.
    Thanks.........
    Dude... your poll and your post make about just as much sense as a monkey talking to an ostritch with indigestion problems.

    Care to rephrase and re-explain?

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I don't think he understands what a poll is.

    I think he may be trying to tell us that we can provide him with vbcode examples, image examples (?), or attachments.

    If not that, then...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    what is a DHTML button??

    if it is a form then it doesn't matter what page it goes to you can get the value of the button and then just load the correct page or settings. if you get the info from a db than run your query depending on the value of the button pushed.

  5. #5
    Lively Member DJ P@CkMaN's Avatar
    Join Date
    Jan 2002
    Location
    Burpengary, Queensland, Australia
    Posts
    95
    Make you links like this

    <a href='page.php?country=aus'>Australia</a>

    then your PHP code

    PHP Code:
    $sql "SELECT * FROM countries WHERE country='{$_GET['country']}'"
    There's something I've noticed in the last year or so...
    Australian's are good at EVERYTHING !!!

  6. #6
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    I still haven't heard what a DHTML button is.

    all DHTML is Javascript and css.

    so again, you use the button value, not a link

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