Click here to Skip to main content
15,917,645 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: what is the best open source script to manage team wrok Pin
Richard MacCutchan12-Dec-13 5:42
mveRichard MacCutchan12-Dec-13 5:42 
QuestionError in PHP application Pin
Member 1025130111-Dec-13 0:41
Member 1025130111-Dec-13 0:41 
AnswerRe: Error in PHP application Pin
Richard MacCutchan11-Dec-13 1:55
mveRichard MacCutchan11-Dec-13 1:55 
QuestionProblem with query result... Pin
Jassim Rahma25-Nov-13 10:15
Jassim Rahma25-Nov-13 10:15 
AnswerRe: Problem with query result... Pin
Graham Breach25-Nov-13 22:37
Graham Breach25-Nov-13 22:37 
GeneralRe: Problem with query result... Pin
Jassim Rahma25-Nov-13 22:57
Jassim Rahma25-Nov-13 22:57 
SuggestionRe: Problem with query result... Pin
thatraja26-Nov-13 0:59
professionalthatraja26-Nov-13 0:59 
QuestionHow can we remove Secure Login Pages Security in Php ? Pin
Member 103763032-Nov-13 8:05
Member 103763032-Nov-13 8:05 
AnswerRe: How can we remove Secure Login Pages Security in Php ? Pin
Richard Deeming4-Nov-13 1:48
mveRichard Deeming4-Nov-13 1:48 
QuestionPHP 5.2 -> 5.4 problem Pin
Mike Osbahr31-Oct-13 4:42
Mike Osbahr31-Oct-13 4:42 
AnswerRe: PHP 5.2 -> 5.4 problem -> SSI? Pin
Mike Osbahr6-Nov-13 5:44
Mike Osbahr6-Nov-13 5:44 
Questionhow can i split an object into chunks and send them ? Pin
kleymanx9027-Oct-13 0:31
kleymanx9027-Oct-13 0:31 
AnswerRe: how can i split an object into chunks and send them ? Pin
Richard MacCutchan27-Oct-13 2:06
mveRichard MacCutchan27-Oct-13 2:06 
GeneralRe: how can i split an object into chunks and send them ? Pin
kleymanx9027-Oct-13 19:53
kleymanx9027-Oct-13 19:53 
GeneralRe: how can i split an object into chunks and send them ? Pin
Richard MacCutchan27-Oct-13 22:40
mveRichard MacCutchan27-Oct-13 22:40 
GeneralRe: how can i split an object into chunks and send them ? Pin
Albert Holguin14-Nov-13 8:40
professionalAlbert Holguin14-Nov-13 8:40 
AnswerRe: how can i split an object into chunks and send them ? Pin
Albert Holguin14-Nov-13 8:38
professionalAlbert Holguin14-Nov-13 8:38 
QuestionPHP CODES TO DISPLAY SLIDING IMAGES Pin
Member 1034654419-Oct-13 11:12
Member 1034654419-Oct-13 11:12 
AnswerRe: PHP CODES TO DISPLAY SLIDING IMAGES Pin
Peter Leow4-Nov-13 1:52
professionalPeter Leow4-Nov-13 1:52 
QuestionAvailable username on all pages after login Pin
msz90013-Oct-13 6:03
msz90013-Oct-13 6:03 
AnswerRe: Available username on all pages after login Pin
Ringunger24-Oct-13 21:11
Ringunger24-Oct-13 21:11 
QuestionHow to Play multiple Videos in single player page ? Pin
mAzeem228-Oct-13 22:49
mAzeem228-Oct-13 22:49 
Questionphp search form having 2 input fields and single submit button Pin
marshalericson8-Oct-13 7:59
marshalericson8-Oct-13 7:59 
I need to create a search for (wordpress site)form having 2 input fields. 1. A dropdown field, consisting all categories. and 2. a basic text input which would search the whole site.

I was using a plugin (advance-wp-query-search-filter.1.0.10) but it is not working. When i select a category, the meta title and the meta description is getting generated but no posts is getting displayed.

I was trying to get all the categories and combine with the single input text search button. code for getting all the categories into a dropdown menu:

XML
<li id="categories">
       <h2><?php _e('Categories:'); ?></h2>
       <form action="<?php bloginfo('url'); ?>" method="get">
       <div>
       <?php wp_dropdown_categories('show_count=1&hierarchical=1&taxonomy=coupon_category'); ?>
       <input type="submit" name="s" value="view" />
       </div>
       </form>
</li>



what i want is, there should be 2 inputs (dropdown & text input) and a common search button which would submit both or any one input which is provided by the user.

My single input text search button is working fine. How can i combine multiple input fields ?

XML
<form role="search" method="get" id="searchform" action="<?php bloginfo('siteurl'); ?>">
      <div>
<label class="screen-reader-text" for="s">Search for:</label>
        <input type="text" value="" name="s" id="s" />
      <?php wp_dropdown_categories('show_count=1&hierarchical=1&taxonomy=coupon_category'); ?>
<input type="submit" id="searchsubmit" value="Search" />
      </div>
    </form>


The above code, displays a search box with 2 inputs, which are dependent on each other. I want it to work independently having a common submit button. if i input a category and search, the search results should be according to the category, and if i search only a normal text input, the result should be according to the input text. and if i input both the fields, i want the search result to get populated with respect to the input text box.
Questionphp Pin
BipinVekariya25-Sep-13 2:12
BipinVekariya25-Sep-13 2:12 
QuestionPHP call to mysqli_query returns null (as expected) but I don't seem to be able to detect it Pin
Jonathan Davies9-Sep-13 6:22
Jonathan Davies9-Sep-13 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.