Open Source Scripts > Help with WordPress
need to modify php script to change to a drop down menu in destination field
(1/1)
John Blasko:
Hello, I hope someone can help. I have downloaded a wordpress theme for small taxi companies in which customers can enter a start address and end address which will calculate the taxi fare. The script uses Google Maps. What I need to change is the destination address area to a drop down menu where customers can only select from predefined destinations. One such destination would be (Phoenix Sky Harbor Airport, 3400 E Sky Harbor Blvd Phoenix Arizona). Here is the current destination box code which I need changed to a drop down menu.
<div class="controls" style="position: absolute; top: 110px; left: 300px;">
<input name="toDestination" id="to" value="<?php if(!$_POST['toDestination']){echo $_POST['toDestination'];}?>"/>
</div>
My website is http://arizonacabcompany.com if that might help
codeguru:
Hi John,
First of all, did you manually-coded the form where big text fields Start and End appear? If you're using page template, you can do it with a <select>. If that's a plugin, modify the plugin.
But then, that's in a homepage so you need to check /template_directory/home.php or /template_directory/index.php and do the modifications.
Cheers,
Navigation
[0] Message Index
Go to full version