Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-30-2009, 04:05 PM Array search
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Hi
I'm trying to make a search array but I really do not know how.
The objective is to open in one new window diferent "website#1.com" that shows a list of "productname" that falls into a certain price range.
I've made this so far, but I think something is wrong....
HTML Code:
 <table width="90%" height="150" border="1" cellspacing="0" cellpadding="0" >
  <tr>
     <td align="center">
     
     
         <?
$array_countries = array(
  "Afghanistan",
  "Albania",
  "Algeria",
  "Andorra",
               ... and so on...
 );
   
   ?>
     
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td width="100%" height="10" align="center">
       <?
echo '<form action="form_action.php" method="get"><font face="verdana" color="#000000" size="2"><b>Choose a country:</b></font><br><p><SELECT name=country>';
foreach ($array_countries as $key => $value)
{
echo '<OPTION value='.$value.'> '.$value.'';
}
echo '</select>'; 
?>
</td>
 </tr>
 <tr>
 <td width="10" height="20">&nbsp;</td>
 </tr> 
  <tr>
   <td height="10"> <p align="center">   
 
    <font face="verdana" color="#000000" size="2"><b>Price range between:</b></font></p>
      </td>
       </tr>
        <tr>
         <td height="50" align="center">        
          <font face="verdana" color="#000000" size="2"><b>&euro; 
           <input type="text" size="10" />&nbsp; and &nbsp;&euro;<input type="text" size="10" /></b></font>
            </td>
          </tr>
       <tr>
      <td height="10" align="center">&nbsp;
     </td>
    </tr>
   <tr>
  <td align="center"><input type="submit" value="Submit" />
   </td>
    </tr>
     </table>     
    </td>
</tr>
</table>
</td>
</tr>
</table>
Is there somebody to help me here?
thanks

Last edited by chrishirst; 11-30-2009 at 04:06 PM..
josil is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-01-2009, 05:00 AM Re: Array search
Super Talker

Posts: 139
Name: John Davis
Trades: 0
If you need to submit form into new page, then use target="_blank" in <form declaration.
Also, you have not assigned name value for two text elements in your form which are responsible for price.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Reply     « Reply to Array search
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21736 seconds with 12 queries