What do you mean by a dropdown menu? Not a select (dropdown list) so what,
then?

If you want to submit it back to the server, then you need something set
inside the form.

If you want it to calculate it immediately, then you need to do it in
JavaScript.

Where are you getting this list from?

I can't really see the design behind this. You miight need to go back a step
and get the design right. Use diagrams are good for this, or maybe just a
use list like:

1 Admin adds a gift
2 Admin amends gift details

3 Guest indicates they will buy gift

Then you break each one down

3 Guest indicates they will buy gift
3.1 System displays available gifts
3.2 Guest selects gift
3.3 Guest selects quantity
3.4 System displays total price
etc.

Or post as much as you can and I'll do it as an exercise - it sounds like a
good idea for an example.

Ian



On 15/12/05, roth_georg <[EMAIL PROTECTED]> wrote:
>
> Hi guys!!
>
> I'm getting married next year and I'm currently trying to set up a
> wedding list in php. Honestly, I have some severe problems.
>
> I would like to add a dropdwon menu after /*Here: Insert dropdown*/
> but I can't get it done.
>
> The user then choose from the list a number and he number is then
> multilplied with $capreis. My questions would be:
>
> how do I set up a simple dropdown menue?
> how do I store the value choosen from the menue into a variable?
> how do I outpur value*$capreis
>
> Thank you very much for an answer!!
>
> Georg
>
>
> CODE
>          echo $capreis;
>                     echo "</td>";
>                     echo "<td align=left valign=middle width=200>";
>                             echo $feld[kurz];
>                     echo "</td>";
>                     echo "<td align=left valign=top width=150>";
>                           /*echo $status;*/
>                           echo "Anzahl:";  /*Here: Insert dropdown*/
>                       echo "<form method="" action="">";
>                       echo "<select size="1" name="D1">";
>                       echo "<option>1</option>";
>                       echo "<option>2</option>";
>                       echo "<option>3</option>";
>                       echo "<option>4</option>";
>                       echo "<option>5</option>";
>                       echo "<option>6</option>";
>                       echo "<option>7</option>";
>                       echo "<option>8</option>";
>                       echo "<option>9</option>";
>                       echo "<option>10</option>";
>                       echo "</select></p>";
>                       echo "</form>";
>                           echo      "<br>";
>                                 echo      "<br>";
>                                 echo "Preis total:";
> /*Here: OUTPUT $capreis * VALUE FROM DROPDOWN
> */
>                     echo "</td>";
>                     echo "<td align=left valign=middle width=100>";
>
>                           echo "<a
> href=\"index.php?show=detail&order=".$order."&artid=".$feld[artid]."
> \" target=\"_self\">Details</a><br><br>";
>                           echo "<a
> href=\"includes/detail_drucken.php?artid=".$feld[artid]."\"
> target=\"_blank\">Druckansicht</a>";
>                     echo "</td>";
>
>
>
>
>
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
>
>
>
> SPONSORED LINKS
>   Php 
> mysql<http://groups.yahoo.com/gads?t=ms&k=Php+mysql&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=FLGkJVBUdDMln4PBO26sng>
>  Job
> postings<http://groups.yahoo.com/gads?t=ms&k=Job+postings&w1=Php+mysql&w2=Job+postings&c=2&s=33&.sig=cV3rp9pSpCxahJy7imon_w>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    -  Visit your group "php-list<http://groups.yahoo.com/group/php-list>"
>    on the web.
>
>    -  To unsubscribe from this group, send an email to:
>     [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
>    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to