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>";
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/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/