coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: hmmwv on February 07, 2004, 01:14:01 PM

Title: integrate search from with prefilled init value
Post by: hmmwv on February 07, 2004, 01:14:01 PM
hi
i´d like to integrate a search form with the album title filled in as init value.
can anybody help me with this? i´ve already tried a few things, but i can´t get it working  :x

the code for the searchbox is:
<table width="324" height="50" cellpadding="0" border="0" style="border-collapse:collapse;">
                        <tr>
                          <td width="320" height="46">
                            <table width="100%" cellpadding="0">
                              <tr>
                                <td width="100%" align="center">
                                  <table>
                                    <tr>
                                      <td align="right" style="color:000000;font-family:verdana, helvetica, sans-serif;font-size:10px;">Search for Posters:  </td>
                                      <td align="left"><input type="text" name="Search_String" maxlength="100" size="23" value={ALBUM_TITLE}></td>
                                      <td><input name="image" type="image" src="http://images.art.com/images/aff/searchbox/go.gif" alt="Search Now"></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                                      </table>
                    <input type="hidden" name="T" value="15033145">
                    <input type="hidden" name="A" value="750842">
                    <input type="hidden" name="L" value="12">
                    <input type="hidden" name="P" value="0">
                    <input type="hidden" name="S" value="3">
                    <input type="hidden" name="Y" value="1">



i´d like to place the searchbox between the breadcrumbs and the thumbnails-table.
thx.
hmmwv
Title: integrate search from with prefilled init value
Post by: Joachim Müller on February 08, 2004, 11:33:56 AM
I don't get the point. What is above piece of code supposed to do? You can't insert this stuff into template.html and hope it works.
Title: integrate search from with prefilled init value
Post by: hmmwv on February 08, 2004, 12:17:38 PM
it´s a search form for posters, take a look here:
http://www.celebrityfiles.net/index.php
Title: integrate search from with prefilled init value
Post by: Casper on February 08, 2004, 01:13:48 PM
so what you want is a drop down box, where the user just selects which album to search for.  Is this what you want?
Title: integrate search from with prefilled init value
Post by: hmmwv on February 08, 2004, 04:07:18 PM
no, i want a search form for an affiliateprogram like allposters which is prefilled with the albums name
Title: integrate search from with prefilled init value
Post by: Joachim Müller on February 08, 2004, 09:00:09 PM
in this case you'll need a bit of JavaScript to do the magic: insert it into the <form> tag (with onSubmit) - the JavaScript then manipulates the existing search form, adding the additional parameters to the user input and returning it to the form, which is then submit to the server.
As I said before: the code you posted above is bull (it displays stuff in HTML, but the data you send in the form won't be taken into account by the form-processing script.

GauGau