I'm trying to pass the ac_no contained in my database table to a form that's displayed within a Bootstrap Modal upon clicking a button. My code is as follows. <?php $mydata = mysql_query("SELECT * FROM slabpay WHERE ac_no='$ac_no'"); while($record = mysql_fetch_array($mydata)) { $id=$record['id']; ?> <tr class='fired' id='<?php echo $record['id']; ?>'> <td class="center"><?php echo $record['install_no'] ?></td> <td class="center"><?php echo $record['install_amt'] ?></td> <td class="center"><?php echo $record['install_date'] ?></td> <td class="center"><?php echo $record['agent_name'] ?></td> <td id="fired" class="center"> <?php if($record['install_amt']=='000000') { ?> <button class="btn btn-info" data-toggle="modal" data-target="#payAmt" data-id="<?php echo $row['ac_no']; ?>"> <i class="halflings-icon white edit"></i> </button> <?php } ?> </td> </tr> <?php } ?> // …

Member Avatar
Member Avatar
+0 forum 2

how to pass the value of one webpage to another at same project i mean me have to webpage one have item and the second for a cart mean to add these item to the cart on one click.me have the following control in item webpage image,lblName,lblPrice,lblQuantity me want to add or show these values to a repeater on cart webpage. best Regard Mian Sahib Jan

Member Avatar
+0 forum 0

FB.api('/me', function(userInfo) { console.log(userInfo.email); var emailid = userInfo.email; console.log(emailid); }) $.ajax({ url: 'index.php?r=tryon/saveemailid', type:'post', data:{'saveemail':emailid}, success : function(data){ alert("success!"); } });

Member Avatar
Member Avatar
+0 forum 6

how can we pass the value of an array without using index of an array i.e subscript([]).

Member Avatar
Member Avatar
+0 forum 2

How to send a string from c to java in continuos loop

Member Avatar
Member Avatar
+0 forum 1

Hello Community, I was wondering if there is a possibility to pass a dictionary to another program? What I want to do is send some information from one program to another, I want to use an array but I can't set keys and that is what I really need and I can't think of anyother way of doing this. So if you could help or think of anyother way that'll be great, thanks.

Member Avatar
Member Avatar
+0 forum 6

I have a question about carrying an entire html table from one page to another in a PHP variable. I would have thought that I could do it, but it doesn't seem to want to work It is a shopping cart displayed in a table, and when they accept the cart, I want to carry it to the next page to be used in the body of an email that will be sent out. I know I could rebuild it for the email, but why do it twice if there is a way to reuse the first build. Here is …

Member Avatar
Member Avatar
+0 forum 3

I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this. This my combo box html code. <select id="ID1" name="place" > <option value="Colombo" selected="selected">Colombo</option> <option value="Matara">Matara</option> <option value="Galle">Galle</option> </select> //What i want is pass selected value through URL <div style="float:right; padding-right:1px; padding-bottom:2px;"> <a href="MyCity.php?city1= <?php echo $_GET["place"] ; ?> > Click here </a></div> I'm bit new to php and what is wrong with this code? im sure that 'MyCity.php' coding is correct, because i pass, hard coded value throgh above URL and could get that value …

Member Avatar
Member Avatar
+0 forum 2

Hello ! I'm developing a WebApp using [this example](http://www.primefaces.org/showcase/ui/datatableRowSelectionByColumn.jsf) where I: 1. Connect to MySQL and download data. 2. Populate dataTable with downloaded data using. 3. Fetch(view button) the record and display its details in a dialog. Problem begins when I download the records and click on the viewButton(no matter what record) it displays in a dialog only the first downloaded record. My problem is in line: > <f:setPropertyActionListener value="#{car}" target="#{tableBean.selectedCar}" /> The aplication pattern: jsp -> managedBean -> sessionBean -> entityBean My code: JSP: <h:form id="form"> <p:growl id="msgs" showDetail="true" /> <p:dataTable id="dataTable" selection="true" value="#{cars.getCarList()}" var="car" style="font-size: 12px"> <f:facet name="header"> …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I'm new to php and i'm developing a website for a school project. I need to implement a combobox with some options, for exemple, if I choose "Alimentation" it appears a table with the specific fields for this option and If I choose other option it appears a table with specific fields for it etc. The combobox in html has values, if I pass this values to a php variable I think I can do this system Ex html: **`<option value = "1"> Alimentation</option>`** Ex php: $option1 = the value on the combobox How can I do this? …

Member Avatar
Member Avatar
+0 forum 2

Hi there i woul like to pass my variable "testiframe" from javascript to asp, hw can i do??? Thi is the code : <script type="text/javascript"> if (location.href != top.location.href) { testiframe="ok" } else { testiframe="ko" } </script>

Member Avatar
Member Avatar
+0 forum 2

**how can i pass an associative array and fetch that same array in submitted page with key=>value format. ** <?php //I SUBMIT a.phhp PAGE IN THIS PAGE// $f=$_REQUEST['1'];//1st input field value of a.php page $s=$_REQUEST['2'];//1st input field value of a.php page $t=$_REQUEST['3'];//1st input field value of a.php page $sub=$_REQUEST['s']; $arr=array($f,$s,$t); //$arr=array('a'=>"$f","b"=>"$s","c"=>"$t");//i want to send like this as an associative array $str=implode(',',$arr); switch($sub) { case 's1': echo "<script>window.location.href='j2.php?val=$str'</script>"; break; case 's2': echo "<script>window.location.href='j3.php?val=$str'</script>"; break; case 's3': echo "<script>window.location.href='j4.php?val=$str'</script>"; break; } ?> WHAT WILL BE CODE IN PAGE j2.php/j3.php/j4.php TO FETCH $f,$s,$t value with key=>value format(a=>$f,b=>$s,c=>$t)

Member Avatar
Member Avatar
+0 forum 3

I'm creating a password protected Volunteer Database and everything is going well. I have created a 'password protected' form before entering the hidden database(seperate form). How though am I able to prevent a 'user' to find out the password by going through "Build Event" in Access?

Member Avatar
Member Avatar
+0 forum 1

Hi all Im trying to send integer value from combobox in form 1 to textbox in form 2 I try use this code on form2 : me.textbox.text = form1.combobox.selectedvalue This code works with a textbox **does not have a data source** but when I **set** the data source for the textbox, code does not appear Value What's wrong !

Member Avatar
Member Avatar
+0 forum 1

I have application in which i pass project id from one form to anothe form. but then it shows blank.

Member Avatar
Member Avatar
+0 forum 1

How to pass value to reportviewer table Good day! I want to know how to pass a value to reportviewer table. I want to pass the values of a listview to reportviewer table. How can I do this? Both reportviewer and listview are in the same form. any help is much appreciated. Thank you. i want codes in VB.net

Member Avatar
+0 forum 0

'm trying to pass a String from one class to another class but the result I'm getting is 'null'. I want to pass the String username from LoginFrame to HomeworkFrame; HomeworkFrame: public void loadSubjects (){ String item; try{ System.out.println(username); Scanner f = new Scanner (new FileReader (username + " " + "Subjects" + ".txt")); while(f.hasNext()){ item = f.nextLine(); chSubjects.add(item); } f.close(); }catch(Exception e){ JOptionPane.showMessageDialog(null, "Subjects cannot be loaded!", "Error", JOptionPane.ERROR_MESSAGE); } } LoginFrame: public void loginUser(){ r = new Registration(); h = new HomeworkFrame(); l = new Login(); l.username = txtUser.getText(); l.password = txtPass.getText(); try{ String line; boolean passwordFound = …

Member Avatar
Member Avatar
+0 forum 3

Hello Every one..... I'm developing a web page to generate 2 random numbers and prompt the values to the user and they need to add those numbers and give the result. I tried it a lot but the values are not passing to the prompt window... can anyone help me... script contains these line: var a=Math.floor(Math.Random()*6); var b=Math.floor(Math.Random()*6); var result=a+b; var res=prompt(a+" + "+b+"); if(res==result) alert("you are correct"); else alert("you are wrong"); Can any one help me to resolve this

Member Avatar
Member Avatar
+0 forum 1

Hi Coders, I am really in need of your help...... *Table of contents* are available with *action buttons*, When i click on a particular action button say for examble *edit*,the *id* of that *particular row* should be passed to the *edit space*,so that i can pull all other values from the database for editing.....(Here we are not loading any new page....all the code is in the *same page*) Here i used javascript to pass the value but as php is running in the server side and javascript in the client side,the value is passed only after the second click.... Thanks …

Member Avatar
Member Avatar
+0 forum 2

I have a page called projects.php to let the users submit their bid information via form. When the user is logged in, he can submit this form. But am not able to find out which user has applied to the job unless I specify a username field in the form itself. Each user has to write his username while submitting this form to let me know they have submitted it. I have mysql set up, where the username is stored. How to connect the username automatically when the user is submitting this form without having to enter his username when …

Member Avatar
Member Avatar
+0 forum 3

hello everybody, it's my first time to ask on forums with hope of your very useful support. I have difficulty to access the value of my variable which i set in other page of anchor tag. here the code is; echo '<li><a title="' . $row['hot_name'] . '" href="1hot.php"?pg= "2">' .$row['hot_name'] . '</a></li>' ; I retrieved and displayed the 'pg' index like this; <? $variable = $_GET['pg']; echo $variable; ?> I hoped to see 2 on the screen but what appears is just an error. can u pls help on it? thank you so much!

Member Avatar
Member Avatar
+0 forum 5

Hey Guys, Got a question on storing a value from protcted method to a public variable then using that public variable(with value from protcted method) in another protcted method.. My explaination, so I'll show my code. I'm new to coding so pls be easy on me.. You help is appreciate a million!! Thanks!! :] Partial Class test Inherits System.Web.UI.Page Dim TempVal As String = "" Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim startVal As String = "Welcome" TempVal = startVal End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click …

Member Avatar
Member Avatar
+0 forum 2

Hello, I can't figure out how to pass the values from dojo to a new php page. This is the meat of the dojo code that I did not write, I don't know dojo. I have another page that includes libraries and has the code that creates a form for all of this code below. Everything works fine. What I need to do is pass the values of these variables to a new php page so I can use them to query the database. I want click on an image and then have these values ready to pass onto some …

Member Avatar
+0 forum 0

Hi, below is my code for an android app I am developing, I was wondering how I can pass the value of pos from the array adapter to another activity through intent? What I would like is for the code in the next activity to be performed based on the value of the array's position from this file. I understand I have to use putExtras, but I don't understand how exactly to pass this value with the return type of onItemSelected being void. public class App2Activity extends Activity { Button button1; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); Spinner …

Member Avatar
Member Avatar
+0 forum 3

we can use $_GET method to pass info via url but it shows the info in url like <a href =profile.php?id=$user>click here</a> and in profile.php?id=$user , we can access username via $username=$_GET['id']; is there any safer method to achieve because i don;t want to show the info passed in url. any help is appreciated.

Member Avatar
Member Avatar
+0 forum 14

So, what is my deal... I'm working on a script, which, at some point will require the user to insert his or hers username and a password. My question is, how can I make that when the user will write in the password box/line whatever, instead of its characters, to be shown this character, the Asterix (*), as on all other web-sites, or programs which use log in boxes?... Is there a way, well, to write with no echoo (like in assembly for those who understand), meaning to change the strings which are entered from the keyboard with ***? If …

Member Avatar
Member Avatar
+0 forum 3

I simply cannot figure this program out (nor why I am going in debt paying professors to "teach" me). Our assignment begins with reading a data from a file and storing it in an object array and then displaying the contents of that array. When I compile the program in MS Visual Studio I get the following error: error C2664: 'printArray' : cannot convert parameter 1 from 'Investment [1000]' to 'Investment' 1> No constructor could take the source type, or constructor overload resolution was ambiguous I do not understand what is causing this error or how to fix it. Any …

Member Avatar
Member Avatar
+0 forum 1

In an XSLT file, I am calling a function to a javascript file (.ascx) and trying to pass parameters. One parameter is a Date() object. The only way I've found to successfully pass it is to pass it as a string. Here's the code from the XSLT file. [CODE]<script> grouping("<xsl:value-of select ="Date1"/>", <xsl:value-of select ="ID"/>); </script>[/CODE] Here's my function in Javascript. [CODE]function grouping(date, num) { // Date is now a string instead of a Date() object }[/CODE] What I want to do is keep the date object a date object and not a string. Anyone know how to do this? …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I was working on a MATLab program and I came to a point where I wanted to define a function such that one of the arguments would be used as a command. To clarify, the function being defined was an implementation of Simpson's rule that would integrate using the technique with given bounds, an even number of intervals, and, finally, the function being integrated. I wanted the user to be able to enter any function of his or her choice, but I'm unaware of any techniques or modules that could help me accomplish that. Although, I'm talking about …

Member Avatar
Member Avatar
+0 forum 5

Hey there, working on a program thats going to have a bunch of functions, but for now I am stuck on something that will be reused throughout the program alot: passing a string pointer to a function. It may seem redundant or arbitrary that I am passing it as a pointer, but is required for the project in question. I am not sure what I am doing wrong here, but it is returning the error: [I]In function `void charcount(std::string*)': `length' has not been declared request for member of non-aggregate type before '(' token[/I] - for line 67 (which is the …

Member Avatar
Member Avatar
+0 forum 2

The End.