Check boxes for web application

Hello.
I use: Dreamweaver8 - PHP5.1.6 - MySQL5 - Apache2.2.3
I am also new to this software.
Hope you will guide me to it.


------------------------------------------------------------------------------------------ -
Raw image:

Several checkboxes (For example electrical, mechanical, chemical...)

Function - Add or change

Naming-
E.g. electric - name: JobCategory | Checked the value: electric
Mechanics - Name of the: JobCategory | Checked the value: mechanics

Situation / need.
When the user checks the properties 'Electric' and 'Mechanical', the database should contain something like 'Electric, mechanical' or 'electric & mechanical' or...

Column name in the database: JobCategory
------------------------------------------------------------------------------------------ -


My code only now allows me to have a single value in the column "JobCategory", although it uses checkboxes.
The code was something like:

$insertSQL = sprintf ("INSERT INTO candidate (...,...,...,...,...,...,...,...,...,...,...,...,...,..., JobCategory,...,...,...,...,...,...,...,...,...)") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) ",)
.
.
.
GetSQLValueString ($_POST [JobCategory], "text"), //JobCategory is the name of all the boxes
.
.
.


Thanks babe and dudes ~.
My gratitude
__SY__

David powers :
Thank you very much.
It works fine now.
I tested all of the checkboxes and all could be modified in the database.

In the MySQL database (using phpMyAdmin):
Set the type columndata in phpMyAdmin to SET. In the
Length/values , enter as a comma
list: 'a', 'b', 'c', etc.

Set to the name of each box
name = "ArrayName []".
The pair of square brackets , it turns into a table.

To the same top of the page, add this code :

<>
If (isset($_POST['JobCategory'])) {}
$_POST ['JobCategory'] = implode (',', $_POST ['JobCategory']);
}
else {}
$_POST ['JobCategory"] =";
}
?>

Before the first box , add this line of code to extract
the values in the field in a table called $categories :

Then change the code in the box like this:

<>
If (is_array ($categories) & in_array ("Electric", $categories))
{echo ' checked = 'checked' ";}?} > />


The conditional statement first checks to see that $categories is an array.
This prevents an error if $row_rsEditCandidate ["JobCategory"] was empty.
The code then looks for 'Electric' in the $categories table. Even if
There is only one item in $row_rsEditCandidate ["JobCategory'],
$categories will always be an array. Just replace "Electric" with the
appropriate value for each check box.

Tags: Dreamweaver

Similar Questions

  • The check box for "see windows contents while dragging", shoots himself

    The check box for "see windows contents while dragging", shoots himself.    Irritating!   Any ideas?

    Hi Mr_Sleeze,

    See if you can set a registry key verification:
    How to use Group Policy to configure auditing of Windows registry keys
    (The above article was written for Windows XP Home edition, but should work as well under Vista).

    DragFullWindows is the value you want to monitor.
    http://TechNet.Microsoft.com/en-us/library/cc787526.aspx Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • any debug console of javascript for web application debugging?

    Hi, expert,

    I asked the question before (link is: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/any-javascript-debug-console-for...), here's the answer I got this time:

    From about 7.0, you can use the 5.0 and web Inspector, you can debug using our tools, but in 6.0, you're stuck with more traditional methods like chicoxml?' suggestion s to the try/catch statements or alert

    It is a follow-up on issues. For 5.0, it is said that I could use the tools of the RIM. Does anyone know what are the tools that they are? Somehow, I couldn't find any related link.

    I find a debugger of widget RIM, we I have to use it if my application is packaged as a widget? It seems that widget is outdated as well.

    Moreover, our web application is just a standard URL that works on all browsers and OS.

    Any help would be much appreciated. Thanks in advance.

    Hi fold.

    I believe that you must compress your site like a webworks app to use the 5.0 debugger. It would be very hard to do, but would be limited to 5.0

    I'm sure that Weinre supports debugging on a real device.

  • check box for fills the fields


    Hello

    I have a column of text fields named date1, date2, date3... all the way to date10.  I would like to include a check box if the user enters a date in the field "date1" then checks the checkbox, it could fill the remaining fields with this value.  Someone would have the script for this.

    Thank you very much.

    You can use this code as the script of the mouse upward to the checkbox:

    if (event.target.value!="Off") {
        var v = this.getField("date1").valueAsString;
        for (var i=2; i<=10; i++) {
            this.getField("date"+i).value = v;
        }
    }
    
  • creation of css for web applications

    Hello

    I use Adobe Muse and BC.

    I created a web application.

    I created the specific css file to target the HTML in this web application.

    I have connected the css file to one of the html Adobe Muse.

    When I download Adobe Muse the html file that is connected to my css file is overwritten.

    In what file html should I plug my css file so it will target web app html?

    What I am doing wrong?


    Reg.

    Peter

    Hi Peter,

    You don't need to create different CSS files for each component of the site that you create. Files that load on a site in the 'head' is equivalent to the performance load increase and it is something to avoid, at least the better.

    With regard to what you say, web apps use page layouts, a module is located in the pages/templates for BC and what CSS is used by those who embrace the Web app html and classes or target will be read when in your main CSS.

    You do not try and connect web app layout html for CSS - Web sites files and British Colombia does not work like that, so do not know what you are doing, but it will not work like that.

    Just put your styles in your stylesheet and when you call a module of web application you are targeting things correctly, it will work.

  • Select the check box for the table of the ADF

    Hi all

    I want to add the check box in front of each line. The user will select the row by clicking the box and going to treatment by clicking on a button.

    I just almost all possible discussions on OTN.

    What I've done so now
    1] added a transitional Boolean attribute in my VO. added as a selectBooleanCheckbox in .jspx page.
    [2] a button with backing bean that will do the processing. [He will pick up the attributes of all ranks and be written in a file]
    [* 3] it works fine if I use the default option of line by Ctel selection + A, or by pressing Ctrl + click or SHIFT + arrow key. Backing bean is not the issue.*
    [4] try to intercept the TableSelection Listner also.

    It comes

    When I select the check box, only the last selected line is processed and not all lines. How to make the selectable online by clicking on the checkbox.

    I use JDeveloper 11.1.1.5

    Refered links
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-row-selection-using-checkboxes/
    http://technology.AMIS.nl/2010/07/29/ADF-11g-select-all-rows-in-an-ADF-table/
    http://Sameh-Nassar.blogspot.nl/2009/12/use-checkbox-for-selecting-multiple.html
    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/99-checkbox-for-delete-in-table-1539659.PDF

    Mukesh.
    https://www.dropbox.com/s/1gqsaobgyjycie6/AddDeleteEmployees.rar
    
  • Tags blog for Web applications

    Hello

    I would like to create blog tags (keywords) to a blog that I created with web apps, but I'm not sure how to proceed. The tags would go under the ticket blog, as well as on the sidebar of the blog in the Details view. How can I do this?

    Capture.JPG

    Hello Ryan Perez,.

    There may be better/more easy, but these are my thoughts.

    If you have a web application for the blog, will this name us a blog. Then create a second web application named Blog Tags. Now, the only real downfall to this is that you also need to create a category for each tag.

    Even in the Blog Tags web app the only field that the category id for the tag that you created, and the name of the element will be the name of categories.

    Create a field in a blog called Tags and assign the Data Source - Blog Tags. This will give you a series of links to the details of the elements Blog Tags view.

    In the provision of retail Tags Blog Add cela and only this-{module_webapps, [blogTagsWebAppID], c., {tag_tag ID}}

    Then create a custom list for blog view that just out of the field "tags", and he'll give you a bunch of tags has you can click.

    I hope this helps.

    Chad Smith

  • Using a check box for autopopulate other fields (= ship Bill to)

    I checked the other threads and don't know what I have to do.

    I have NO experience of script and am using LC Designer ES 8.2.

    The form I designed will be finally sent to customers for them to fill out using Adobe Reader.

    I have two sections - a "Bill" and a "ship to" and they are areas of free text to one drop down to "country".

    What I want to do is to put a check box on the form that says "Bill is identical to ship to.

    If the user clicks on the box, the data should autopopulate the other fields.  If they "UN-click on ' the box, the data goes.

    Script is WAY above my head and scares me but I peut follow directions.

    Can someone help me?

    Chuck,

    First off apologize not to ask a question... no question is stupid.

    Secondly, the script of your checkbox is on the bad event.  Looking at your screenshot, you placed on the 'click' event... should be placed on the 'change' event See screen capture below.

    Then, the script should be (for example):

    If (this.rawValue == 1) {}

    Company2.RawValue = Company1.rawValue;

    }

    If (this.rawValue == 0) {}

    Company2.RawValue = "";

    }

    Finally, it's just a suggestion...  Since you make the box (same as ship to... which means that the Bill for info would be the same as the ship for info) I make the column 'Bill To' the second column and make the ShipTo the first column so users enter the Ship To news first. In my example, company 1 represents the ShipTo, a Company 2 BillTo nd. When the user checks the box (checkbox value == 1), the news of billto are filled by the ship to info data entered and when unchecked (checkbox value == 0), the billto fields are empty... so (Company2.rawValue = "" ;))

  • Using OATMEAL - tests for Web Applications with ADF Faces functional

    Hello

    I have tried unsuccessfully to use web functional OATS to test to test a web application written
    with Oracle ADF faces (JDeveloper, ADF BC + ADF Faces).

    It is supposed to work or we are in the same situation as OpenScript when a version 9.1 for ADF Faces
    is scheduled for mid-2010?

    Concerning
    Paul

    Paul

    As you pointed out support for ADF will be released later this year, as it is now can use OpenScript to test ADF but is somewhat complicated and you need to do a bit of editing of your scripts.

    Concerning

    Alex

  • With value of check box for show/hide radio buttons?

    I have created a pdf form. I have a checkbox and radio buttons several. I put it so radio buttons are hidden until the user clicks on the checkbox above him. I also put the box reset option on mouse-to top buttons. However, radio buttons are always selectable. I want to assure you that if one of the radio options is selected, the check box to be checked as well.

    Is there a bit of javascript, I could add to the check box to hide the option buttons if its value is not equal to yes (checked)?

    You can use code similar to

    If (event.target.value == 'Yes') {}
    selected - display radio buttons
    this.getField('Radio_Button1').display = display.visible; view the radio button
    } else {}
    Show box unchecked hide radio button and reset the field
    this.getField('Radio_Button1').display = display.hidden; Hide radio button
    this.resetForm (["Radio Button1'"]); Disable the option button
    }

    But YOY will have to change the field "Radio Button1" name match your fyouor domain name to the Group of radio buttons.

  • Add the check box for each line in the classic report

    Hello

    I created the report classic with checkboxes in each row and added the On-Submit process, BUTTON CONDITIONAL, to determine the behavior of the boxes. The process of PL/SQL is suppose to delete the selected row from the database.

    I get the success message, but when I check the database, the line is still present in the database.

    PLSQL CODE:

    FOR i IN 1.. apex_application . g_f01 . County LOOP

    DELETE
    Of
    Registry
    WHERE
    reg_id
    = apex_application. g_f01 (i); END LOOP ;




    ORACLE APEX: 4.2

    Thank you

    ApexNewLearner wrote:

    I tried the above solution, but I get the error message.

    Don't see no error message (maybe someone else was modulate the application). As I found it, the problem was the property view as of the column being Simple Checkboxvalue box. This type of display should be used only by generated by the wizard tabular forms, not with a apex_item.checkbox2 column. When the display type is changed to Standard report column, the row is deleted if necessary.

  • Formatting check box for the conditional statements in Adobe Acrobat format, form editor

    I'm looking for the format I should use boxes in Adobe Acrobat Pro XI, forms, Java Script Editor.  I am very familiar with this, as well as the use of the IF / AND statements.  I'm NOT using LiveCycle.

    Algorithm:

    -If either CB1 or CB2 are checked, then empty, equal

    -Si CB2 is checked then equal "N/a".

    D ' other...

    I don't know how I should be charged the formula.  I was also curious, I noticed in the properties of the box that the value of exports could be retained.  I've seen different variables, including here, Yes, 0, 1, True, etc.  Will there be an impact on the code?

    var v1 = + this.getField ("Check Box1") .value;
    var v2 = + this.getField ("Check Box2") .value;

    If ((v1 == "") & (v2 == "")) event.value = "";

    ElseIf (v2! == 'Off') event.value = "n/a";

    else event.value = ("... ») ;

    Any help is greatly appreciated.

    -Yes, of course. If you change the value of the export of the boxes - and then you have to adjust your code accordingly to take into account.

    -The value of a checkbox that is unchecked is always "Off".

    -When you add the symbol '+' before this.getField("XXX").value you want to convert it to a number. That doesn't look like a good idea in your case, then you should drop.

    -L' Boolean AND operator in JS is &, not &.

  • Use a check box for hide/show (toggle) another field

    I have a form I created in Adobe Acrobat X.  The form will be used ultimately interface of data entry on iPads.  I need to keep the very simple form, but there are a lot of technical information, that users may need help filling out the forms.  I wish I could have a button, checkbox, or another object allows the user to view additional information.

    I played to establish links to documents is attached, using the article tool and finally try to use a checkbox control to control the property visible and hidden in a text field.  Admittedly, I'm a horrible programmer so I need assistance to swallow.

    My box is called: GMR1_1_Details_Select

    The text field is called: GMR1_1_Details

    I have tried this and that with JavaScript in the Actions tab and tab calculate and fail.

    Can anyone solve this puzzle for me?  I want this code in my form:

    so when the checkbox named "GMR1_1_Details_Select" is checked, my text box field ("GMR1_1_Details") is visible.  If the user disables the box, it might be hidden.  By default, the text box must be hidden and the box must be unchecked.

    If GMR1_1_Details_Select = yes

    Then GMR1_1_Details = visible

    on the other

    GMR1_1_Details = hidden

    I tried the codes similar to:

    If (event.target.value! = "On") This.GetField ("GMR1_1_Details"). Display = display.hidden;

    and any other code that is similar to:

    Var GMR1_1 = this.getField ("GMR1_1_Details");

    If(GMR1_1==="Yes");

    {

    1. This.GetField ("Text10"). Display = display.hidden;

    }

    on the other

    {

    1. This.GetField ("Text10"). Display = display.visible;

    }

    In both cases I get nothing.  I realized that I have at least 2 problems:

    (1) I don't know how to write code and,

    (2) I don't know where to put it.

    Please and thank you

    OK, I read your original question in more detail and there are other approaches that work. The additional amount of information you're talking about, at the top end? A paragraph of text, a page, several pages?

    A simple popup dialog box code is as simple as:

    Script mouse upward to a button

    App.Alert ({CMSG: "it's the first line.\r\rThis is the third line, which follows two returns cart.", cType: 0, nIcon: 3 '' '});

    Rather than an action to read the article, use an action of type "Go to a page view" If you want to use this approach.

    I would use a button for those two things, using the MouseUp event.

  • Best practice for Web application...

    I'm creating a web site with a lot of Flash stuff on him. I want to load a lot of information from a database server and save a lot of feedback again. It is not a large amount of information either by the way - I don't need to load video clips and things, but there will be loads of resources flash on the site and so many different occasions when it will need to be some loading and the current backup.

    So to the question - what is better to use?

    (1) LoadVars? (or XML object) - I'm pegging this option together I can see that some of the information in XML format to tell an ASP page to load might be a good idea

    (2) web services? I don't know a lot about Web services, but many large companies seem to be providing out - google, yahoo and flickr for example (- but dya think they use themselves?) I realize I need to learn something a little different as .net (so maybe VB.net or c# or something all opinions which go to there too?) or maybe perl or python or something...

    (3) flash Remoting? I have negative feelings about it: I don't want to pay for additional stuff if she does not do much for me - and I understand that with this one I still need my application aside server anyway - so it makes me wonder what's the point? And I also heard that the latest version of flash is not really support very welll...

    If anyone has any ideas? I'd like to hear opinions... I care about the performance, and I don't like about how fussy and complicated programming will be. My gut reaction is that web services are the way to go, because in my naïve eyes, they seem like they'll be easier to code and have fewer bugs and therefore be more reliable. But then I'm not trusting my naïve spirit, I ask you types smart forum instead!

    Best wishes
    Neil

    I would say webservices is the way to go. I use them for two reasons:

    1. - It follows the MVC framework. I have usually two versions of my sites (Flash and HTML) and it is easier to import data from a source instead of multiple sources for each development.
    2 - if ever I need to upgrade the display component of the project or to change anything within the business logic Web service approach makes it easier for you.

    If you use Flash Remoting or classic ASP you end up with a solution that only works for himself. Web services are the way to go if your project needs scalability.

    See you soon
    Gorka

  • Oracle load testing for Web Applications - connection problem

    Hello

    I am currently trying to learn that load tests of Oracle for Applications Web tool Version: 8.50.0299 and he asks me a user name and password to connect...

    and I only set a master password during installation
    try recording with user name: System, sys
    password: master password

    It did not work :(


    any ideas?

    You want the user 'administrator' (with the password you set during installation).

Maybe you are looking for

  • iPhone 7 more - Siri iOS10 not work and does not

    I received my iPhone 7 Plus 3 days ago and tried to set up "Hey Siri". In the process, I noticed that Siri was insensitive and does not work. I did some troubleshooting and started with the reset, restore, turned dictation & Siri/off voltage (before

  • Satellite Pro P750-136 - Bluetooth does not work.

    Hey Bluetooth to my P750 no longer works. I went to device management, and it was the bluetooth rfbus which seems to be the one who does not work despite the driver is correctly installed and updated. I have the laptop for a long time, so assume ever

  • can not find my hp laptop support web site

    Product name: HP Pavilion PC Sleekbook 15 Serial number: 5CD2419PSJ Product number: C6K58EA #ABV im not able to find my product on the hp support web site. I need the network and bluetooth drivers for my laptop. It is not bad possiable with the suppo

  • is there any equivalent code for this?

    Hi, I am doing a project on steganography, but I'm stuck on the bitmap byte array conversion. There is no problem for the code to run in the desktop. Is there an equivalent code for the following code in BlackBerry JDE (for OS 5)? Private byte [] ima

  • PNG blank when I try to take a screenshot of my application

    Hello I used this code example to add a feature to 'take screenshot' my application: http://supportforums.BlackBerry.com/T5/Java-development/capture-and-save-a-screen-shot/Ta-p/445212 But every time that I test, it creates a file Blank.png. I tried a