PHP - Moved: Passing Value From Dropdown Box To Textbox.
This topic has been moved to JavaScript Help.
http://www.phpfreaks.com/forums/index.php?topic=329374.0 Similar TutorialsThis topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=348942.0 Folks, I have a dropdown, once values are selcted, these values should be put in a URL structure so that it matches with the one MoD_rewrite rule in my .htaccess. Here is my Mod_Rewrite Rule: RewriteRule ^(.*)/([^/]*)\.html$ search.php?q=$1&sc=$2 [QSA,L] Here is my Dropdown Code: <div id="search" > <form id="searchform" method="get" action="search.php"> <label>Search By Brand/ Manufacturer: </label> <select name="q"> <option value="SelectBrand">Select Brand</option> <?php if(isset($this->search->options)): ?> <?php foreach($mfg as $lolachild): ?> <option value="<?php echo $lolachild; ?>"><?php echo ucwords($lolachild); ?></option> <?php endforeach; ?> <?php endif; ?> </select> <select name="sc"> <option value="All"><?php eprint(LangAll); ?></option> <?php if(isset($this->search->options)): ?> <?php foreach($this->search->options as $cat): ?> <option value="<?php echo $cat->value; ?>"><?php echo $cat->name; ?></option> <?php endforeach; ?> <?php endif; ?> </select> <input type="submit" value="<?php eprint(LangSearch); ?>" /> </form> </div> Problem is, upon Submit, it goes to this link structu http://mydomain.co.uk/search.php?q=fisher&sc=302 It should rather be: http://au2.co.uk/fisher/302.html What am i missing or doing wrong? Cheer Natasha This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=343375.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=350859.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=330523.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=321339.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=355358.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=333379.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=355809.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=316599.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=332103.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=347628.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=351349.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=353763.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=333787.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=329003.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=359130.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=328006.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=331067.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=305930.0 |