Jump to content


Photo
- - - - -
Open

How To Add Search Option In The Php Documents



  • Please log in to reply
5 replies to this topic

#1 x69chen

x69chen

    Advanced Member

  • Members
  • 64 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 07 November 2012 - 06:09 PM

I use the html code

<div id="cable-search">
<header id="header">
<form role="search" method="get" id="searchform" action="

Please Login or Register to see this Hidden Content

>
<input type="text" value="" placeholder="" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</form>
</header>
</div>

and it creates the search option but doesn't work, it does not return anything.

could anyone help me with it? thanks

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 07 November 2012 - 08:44 PM

In which file are you adding this? Please keep in mind that you shouldn't edit core theme files directly. You'll need to use base theme to edit files:

Please Login or Register to see this Hidden Content



#3 x69chen

x69chen

    Advanced Member

  • Members
  • 64 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 08 November 2012 - 07:25 PM

In which file are you adding this? Please keep in mind that you shouldn't edit core theme files directly. You'll need to use base theme to edit files:

Please Login or Register to see this Hidden Content


Hi I was trying to build some extra php documents to support and show the database.
And then upload them to the web site.

I know there is no relationship to the PageLines Theme,
Thanks so much if anyone could help me

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 08 November 2012 - 07:26 PM

What exactly do you mean by show the database? If you're trying to add a search option, you can probably use the default search that's available with WordPress. Have you already tried this?

#5 x69chen

x69chen

    Advanced Member

  • Members
  • 64 posts
  • Framework Version:Pro
  • Country: Country Flag

Posted 09 November 2012 - 09:17 PM

What exactly do you mean by show the database? If you're trying to add a search option, you can probably use the default search that's available with WordPress. Have you already tried this?

Ok I think I find the way to do it.
Anyway, thanks for helping :)

#6 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 09 November 2012 - 11:53 PM

Hi there, let us know if you managed to get this sorted. If you need specific help in customizing the site take a look at the pagelines pros.

www.pagelines.com/pros/