Hi I'm trying to find a script that will allow me to set multiple options eg. option 1 = 40, option 2 = 15, option 3 = 30 etc where the user can select any number of the options and it will total the numbers up for them example there are 10 options, the user only selects 5 of them the calculator will add up the value of just those 5 options and the user can add from the other options or remove from the currently selected options and it will change the added up value of the total

Member Avatar
Member Avatar
+0 forum 6

this one is driving me nuts so I hope you guys can school me a bit. My goal is to create a multiple-option dynamic pricing sheet for a product page. The concept I have is that all the information for the product is inserted in the database via relative tables. There is one table for each product where I include the basic info (id, name, description, base cost, etc) where each item will get one row. Then the relative table is for each option available (id, pid [the id for the product in the previous table], option name [such as …

Member Avatar
Member Avatar
+0 forum 7

I just wanted to show the basic usage of docopt, a module that makes parsing command-line arguments so much easier. I'm not affiliated with the creators of docopt, but I'm certainly thankful for their work and happy to post this little snippet. I will point you to [docopt.org](http://docopt.org) for more information because there is so much more you can do with this module, that I'm not showing you here. Watch the video, it was an eye-opener for me. Also, if you'd like to install docopt you can go to their [github repo](https://github.com/docopt/docopt) to download and install it. Try running this …

Member Avatar
+1 forum 0

Hello. Please guide me about how to get the options of select tab from mYSQL table. Where to insert php code and how to? Have a look on the code. <td><select name="tby" size="1"> </select></td> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="4"><label>Issue/ Tests : <textarea name="issue" wrap="physical"></textarea> </label></td> Regards. Aamir Karim.

Member Avatar
Member Avatar
+0 forum 17

I have a .htaccess plus PHP question and I am trying to find the answer my own over last months. Of course I have asked friends programmers but they have no clue about it. Because I have this question for many months I am not sure that I haven’t posted a question already in Hardware and Software > Linux and Unix section. I am not sure what way is there in Daniweb to find out that, so maybe there is and sorry for mentioning it , but if is , is not an obvious one. There could be an advanced …

Member Avatar
Member Avatar
+0 forum 2

I'm running Win XP (SP3) and I've noticed an irritating glitch in the last few months which I've finally solved, so I thought I would pass it on. It's pretty trivial, which is probably why I could find nothing for it. I've always set Explorer to open a folder in the same window, but suddenly it started opening a separate window, which might mean I had a dozen or so windows open when I was searching for something (for instance a photo I'd mislaid) I had a desultory try at solving it before, but I finally tried reversing the choice …

Member Avatar
Member Avatar
+0 forum 4

This is a simple calcualtor program. What I don't understand is how I could modify it so that the calculation parameters could be intered from cmd. I don't understand how the argv and argc really work in this case. Do I need to replace all the ints with argv or something? #include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char *argv[]){ int num1, num2, result; char op; int check=0; do{ printf("Enter a calculation or press q to quit: "); scanf("%d%c%d", &num1, &op, &num2); if (op=='q'){ check = 1; return 0; } else{ if (op =='+') {result = num1+num2; printf("%d\n", …

Member Avatar
Member Avatar
+0 forum 4

Hey Guys, I've been away from Dev for a while, just getting back into it now and not sure if there are many Kentico genius' throughout Daniweb ... but I am a bit stuck and need a wee bit of much appreciated help if you can, many thanks I am fairly new to Kentico and I am not 100% sure how to prevent a product option from displaying on the frontend website, but keeping it enabled in the backend so the system admins can still place orders using the option. For example CMSDesk > Tools > Ecommerce > Product Options …

Member Avatar
Member Avatar
+0 forum 1

I would be great if someone could spot the problem with this code please. I have a MySQL table that was populates an Options list which works well when adding new records to another database table. The code is: $query="SELECT id, types FROM $table ORDER BY types ASC"; $result = mysql_query ($query); echo "<select name=\"type\">"; echo "<option value='Select from list.....'>Select from list.....</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=$nt[types]>$nt[types]</option>"; } echo "</select>"; In an EDIT program I required the Options list item previously selected when adding the record to be 'echo'd back'. I changed the above code to do this as shown here …

Member Avatar
Member Avatar
+0 forum 5

Hi All, I have PDFs that are to be watermarked. I need to know whether there exists the below options 1 Option is : Whether we can rewrite the same file with the logo instead of taking the existing pdf and writing this pdf into watermarked file option2 : Whether we can add the watermark upon creating the file first time itself? Pleaase do help.... Hoping for a favorable response Thanks in Advance

Member Avatar
Member Avatar
+0 forum 4

I have a very simple wish, to dump all databases so I can lock up a backup of the databases, tables, users and so on. It looked like [CODE]mysqldump -v --all-databases -u root -p secret > "${directory2}""$h"_mysql_dumpall.sql[/CODE] worked, however the file contained a little error message telling me I had the options messed up. [CODE]Usage: mysqldump [OPTIONS] database [tables] OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...] OR mysqldump [OPTIONS] --all-databases [OPTIONS] For more options, use mysqldump --help[/CODE] Using MySQL on Ubuntu however I want to use the same script on Debian as well at some point. [CODE]Your MySQL connection …

Member Avatar
Member Avatar
+0 forum 1

I need to create a form where you have two possible finishing pages dependent on the answers you give in the form. For instance if you have the question: Do you like sweets? And have the two possible outcomes Yes or No The answer yes takes you to a yesilikesweets.php or if you answer no when you hit submit it takes you to noihatesweets.php Any help greatly received.

Member Avatar
Member Avatar
+0 forum 2

In my Delphi9, I have the ability to "Shrink" complete procedures and functions so that only the first line is visible. There is a small + or - at the beginning of first line of a routine, and when pressed, the code is 'minimized' or 'maximized'. I find this to be a great way of making code easy to browse through, only opening the routine I need to work with at the moment. However. I seem to have a problem with this, because when I start writing a new procedure between some of those already minimized, my editor at some …

Member Avatar
Member Avatar
+0 forum 2

Is it possible to have an optional command-line argument? For example, I want: [CODE]script.py -b[/CODE] to behave differently than [CODE]script.py -b 6[/CODE] In script.py, an enumerated -b argument specifies a behaviour, but if no argument is specified, a behaviour is randomly chosen. Here is my experimentation with getopt. With an enumerated argument, this works perfectly: [CODE]>>> import getopt >>> my_args = '-a -b BeastieBoys -c InterGalacticPlanetary'.split() >>> my_args ['-a', '-b', 'BeastieBoys', '-c', 'InterGalacticPlanetary'] >>> optlist, args = getopt.getopt(my_args, 'ab:c:') >>> optlist [('-a', ''), ('-b', 'BeastieBoys'), ('-c', 'InterGalacticPlanetary')][/CODE] But if an argument is not specified for -b, then the next opt …

Member Avatar
Member Avatar
+0 forum 1

Hello, been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread: [url]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/313687[/url] [B]What I want[/B] I'm trying to create is a SELECT menu with an INPUT field, but the INPUT field won't display before I select an option from the list. After I've selected an option I want two things to happen; the INPUT field displays and a new SELECT menu shows up with some other options. Then in the last menu, where I create the options of course, theres a …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am using the handle_options function in a client program written in C that is using the MySQL API. Considering there is no actual reference to this function (to my knowledge) except the book 'MySQL' (or something) written by DuBois, I'm asking for help here. So I want to process some command line arguments that aren't mysql options. The problem is, they arguments are going to sometimes be negative numbers. The dash (-) representing the negative number gets recognised by handle_options as a mysql option and I then receive the following error message in console. [CODE]unknown option '-2'[/CODE] Anyone …

Member Avatar
Member Avatar
+0 forum 1

I am a total noob at php and I am creating a basic wordpress plugin for a site. I have a function [CODE]function My_Function_2() { ?> [/CODE] Then I have an input inside a div coming from an options page: [CODE]<form method="post" action="options.php"> <?php wp_nonce_field('update-options'); ?> Define Box height <table width="350"> <tr valign="top"> <th width="200" scope="row">Enter Box Height</th> <td width="50"> <input name="Box_height" type="text" id="Box_height" value="<?php echo get_option('Box_height'); ?>" /> (ex. 400)</td> </tr> </table>[/CODE] But when I try to $box_height to use in a url later on, it doesnt work. If I set box_height to a value using an array it …

Member Avatar
Member Avatar
+0 forum 9

For a website about tours I made a form to request for a quotation. There's quite a lot of input fields, some of them with dropdown menu's where the user can choose for example one of the tour destinations. I would like to know if I can pass variables from another page via a simple text link to that form to automatically select the right options (for example one of the tour destinations) in some of the dropdown menus. Thanks in advance for your help

Member Avatar
Member Avatar
+0 forum 5

Hi, I tried an example on [url]http://www.captain.at/howto-ajax-form-post-request.php[/url] for sending a POST form. When I run the example on that specific page, everything works well. Also in Wireshark I see the POST packet passing by. But I'm getting errors when I copy the code to a local html file, and try to run the post.html example from my own pc. I enter the line "alert('There was a problem with the request.'); " because my http_request.status = 0 (I saw with firebug). And when I capture the data with wireshark, from my local post.html file, instead of a POST message, I see …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am pretty new to web development so bare with me. I have a simple problem that I have been trying to solve it for a while now. I have 2 select boxes in a form that when the first select is changed the 2nd select will populate from an array that is coming from a database. What I actually need is that what is selected from the 1st select box, the 2nd select box will populate with all of the first except the selected (from the 1st). Here is my code. I am almost there since I can …

Member Avatar
+0 forum 0

I need to make a form with a few options could be radio or drop down, ex a, b, and c.. and when one is selected I would have a if command that would give you another set of options like if option "a" is selected then in the same page would come up another set of options like a1, a2, a3.. or if "b" is selected then options b1, b2, b3 and so on.. thanks for the help..

Member Avatar
Member Avatar
+0 forum 3

I'm using a cross-compiler that generates MIPS binaries from c++ (mipseb-linux-g++). What I want to do is tell the compiler to use a specific ISA (namely MIPS I). From what I can tell this is a machine option that should be easily configurable. I've tried changing the option in my Makefile but the compiler is still generating instructions from the MIPS II ISA which apparently is default. None of my compiler flags are working. Am I doing something wrong? Here's my Makefile just for reference: [CODE] ############################################################################## # \author acc@cs.rochester.edu # \version 0.01 # \brief ############################################################################## # Environment variables which …

Member Avatar
+0 forum 0

Hi, this is my option value. June is my Default selected Value, but there is a small issue. When Users select any month like January-2010, when he/she click on submit button. Page will show again June in Option. But I want which the user selects. [CODE=php]<td> <label>Billing Month <span class="small">Like September-2010</span> </label></td> <td> <? $year = date("Y") ; ?> <select name="b" class="billmonth"/ > <option value=<? echo "January-".$year; ?>><? echo "January-".$year; ?></option> <option value=<? echo "February-".$year; ?>><? echo "February-".$year; ?></option> <option value=<? echo "March-".$year; ?>><? echo "March-".$year; ?></option> <option value=<? echo "April-".$year; ?>><? echo "April-".$year; ?></option> <option value=<? echo "May-".$year; ?> …

Member Avatar
Member Avatar
+0 forum 15

Hi Guys, I cant find the Folder options button under the tools tab on my comp. Its shows me some map drive, sync drive etc. None of the usual options are showing. In one of the previous threads. this is what was suggested. "[U]man this problem was getting on me like anything, but finally.....I got a way out of this.I was just exploring the windows registry trying out some stuff, when i saw this "NoFolderOptions" field set to '1'. When i deleted it the problem was rectified.You will find this field in the infected computer at the following registry address: …

Member Avatar
Member Avatar
+0 forum 5

Hello all. I'm sorry if this question has been answered before, but I'm a real noob trying to understand Ajax and JavaScript. Therefore I need a (simple) explanation how to pass multiple selections from a list to my Ajax-script - if there are any simple solutions. I'm not using any kind of framework - just plain Ajax/JS, PHP and of course HTML.

Member Avatar
Member Avatar
+0 forum 2

Hi, Need to know some basic knowledge on internet options. How does automatic detect settings work, if we unchecked the automatic detect settings and check the use proxy server for your LAN internet still works. My question is how these 2 settings are linked and also how use automatic configuration script works..?

Member Avatar
Member Avatar
+0 forum 1

My first job on Wall Street was on the equity options floor of the Philadelphia Stock Exchange, running trades for Bear Stearns’ clients, mostly market maker and floor brokers trading on their own accounts or for affluent clients. Options are a tricky beast, and I don’t recommend that average investors dive into them head first – but that’s exactly what a lot of frustrated investors seem to be doing thse days. CNBC has a nice piece on the topic today, citing the growing number of “do-it-yourself-investors” who are turning to options as a quick fix to their now decimated investment …

Member Avatar
+0 forum 0

The End.