i am able to populate data in chain select drop down list but the problem is when page is refreshing selected data is lost how to fix that .. here is the code.. <?php require_once 'include/config.php'; require_once 'include/opendb.php'; ?> <?php if(isset($_POST['model'])){ //This is for the third and final drop down menu. It allows you to submit and go to new page. $link="index.php"; }else{ //This is for the third and final drop down menu. It allows you to submit and go to new page. $link="#"; } ?> <form method="post" action="<?php echo $link;?>" name="admin"> //Straight Forward <select name="value1" onChange="this.form.submit();"> // 1Ste Drop …

Member Avatar
Member Avatar
+0 forum 7

I wanted to chain 3 selects and I got it working using this code. http://jsfiddle.net/FJFFJ/1/ The issue I now have is, how do I fetch the selected values from each dropdown in PHP? For example, the above creates 3 select boxes when the page is opened. When I click on "+" button and add more rows of selects, how do I fetch the values from all selects which were added dynamically and save those to mysql database in php?

Member Avatar
Member Avatar
+0 forum 12

Here is exercise in error handling, while looping and for looping with itertools.chain. It is also exercise of functions not letting user to go without giving proper input. I call them to myself 'jail functions'. Here you could add as an exercise breaking out of loop and continuing until user request to quit. The code works in both Python2 and Python3 with Python2 input overwritten to be raw_input.

Member Avatar
Member Avatar
+0 forum 1

I wrote the following code: package com.chain; public interface Chain { void setNext(Chain chain); void process(int number); } package com.chain; public class ProcessNegative implements Chain{ private Chain chain; public void setNext(Chain chain){ this.chain = chain; } public void process(int number){ if(number < 0){ System.out.println("Negative"); }else{ chain.process(number); } } } package com.chain; public class ProcessPositive implements Chain{ private Chain chain; public void setNext(Chain chain){ this.chain = chain; } public void process(int number){ if(number>0){ System.out.println("Positive"); }else{ chain.process(number); } } } package com.chain; public class ProcessZero implements Chain{ private Chain chain; public void setNext(Chain chain){ this.chain = chain; } public void process(int number){ …

Member Avatar
Member Avatar
+0 forum 3

Having issues creating table using chain hashing (linked nodes). The program compiles, but is crashing during execution. I admit I don't really know what I'm doing since I havent really used inked lists in forever. A lot of this code I do not expect to work right away, such as the remove method, what I have written is a quick run-down of what I am actually expecting the code to do. Another set of eyes on this could really help. I just want to get this working so I have a firmer understanding of manipulating linked lists in time for …

Member Avatar
Member Avatar
+0 forum 3

The End.