User Profile
Collapse
-
can anyone help on this? -
Why is this not working???
I have this code it works fine validates fine until i press submit and it fails
just a simple drop down box
...Code:<tr> <td><label for="subject">Subject</label></td> <td><select name="subject" id="subject" value="<?=$_SESSION['post']['subject']?>" > <option value="0" -
Getting a Autofilled Box to be recognize by onchange
I have auto-suggest that brings down first and last name into a input box, it also brings into another input box the id of the selected item.
on that id i want to be able to auto fill a form from there.
right now i have it set up but and it auto-fills with lets say 55 but it does not execute the code to fill in the form.
however if i type something into that box it fills the form.
my... -
bytesFTW99 started a topic Finding the id of a jquery autocomplete input from within the onItemSelect callin JavascriptFinding the id of a jquery autocomplete input from within the onItemSelect call
i have this,
that bring back values from the database here is my php sectionCode:$(function() { $('#input').autocomplete('test.php', {json: true}); });
...Code:$result = mysqli_query($db,$query); while( $row = mysqli_fetch_array($result) ) { $aResults[] = array( "id"=>($row['s_id']) ,"value"=>($row['s_last']), -
How do i get an alert to stop a page from going on
i have this button, i would like this button on click to pop up an alert "are you sure". If yes continue to the url that in the function, if no stay on the page.
here is the inputter functionCode:<input type="button" id="addlesson" value="Add Lesson!" onClick="inputter(document.getElementById('testid').value)" />
... -
where does the & go LOL
ok this is the javascript
...Code:<script type="text/javascript"> var options = { script:"test.php?json=true&limit=6&one="+document.getElementById('oneone').value, //script:"test.php?json=true&limit=6&", varname:"input", json:true, shownoresults:false, maxresults:6, callback: function (obj) -
could you be more descriptive? are you being charged by the word? why even reply back if your not going to be helpful?Leave a comment:
-
How can i do this
i am trying to pass the a variable "oneone" from a select box to a php page via java script. this is my html
...Code:<div id="wrapper"> <div id="content"> <form> Select a Customer: <select id="oneone" name="oneone" value=""> <option value="s_last">last</option> <option value="s_first
-
i got this to work by getting it
Code:$id = $_GET['id']; echo $id;
it give me the value of s_last however is there a way to be able to get the value of s_first as welll?Code:parent.location='1.php?option=s_ladst&id=' + escape(element);
...Code:$query = $db->query("SELECT $one, s_last, s_first, id FROM table_student WHERE $one LIKE '$queryString%' LIMIT 10");Leave a comment:
-
JavaScript SEARCH on var
i have a autosearch that is bringing in a value
this is my functionCode:<input type="text" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
...Code:function lookup(inputString) { if(inputString.length == 0) { // Hide the suggestion box. $('#suggestions').hide(); } else -
thank you very much atliis exactly what i need!Code:$qty = $_SESSION['cart'][$_GET['id']];
Leave a comment:
-
Unexpected results from a foreach loop.
i am making a little shopping cart want to make a "add to cart page" where the details of what was just added to the cart are shown. The user will be able to proceed to checkout or continue shopping.
Item Price Qty Subtotal
Fight 50.00 1 $50.00
i have this code
...Code:<?php $qty = -1; foreach($_SESSION['cart'] as $id => $value) ; if($id -
Is this even possible!!! Dynamic Option List plus onclick fill
I have been struggling with this for some time can anyone help out? just trying to have 3 dropdown boxes that fill depending on what is selected, then in some cases click a button and have the second set of 3 dropdown boxes be filled with the same values.
thank you
...Code:<head> <SCRIPT LANGUAGE="JavaScript" type="text/javascript"> var firstChoice2 = 0;
-
mysql_fetch_assoc not returning null columns.
i have an array that is pulling down information from a database that has null values. how can a get the mysql_fetch_ass oc to recognize this null value as just empty space to fill in a form as white space? right now it just skips past like it doesnt recognize the column is there at all.
...Code:while($row = mysql_fetch_assoc($result)) { echo "<customer_id>" . $row['customer_id'] -
mysql_fetch_assoc
Ok I have a problem! i have a mysql_fetch_ass oc that does not recognize the NULL value of the column. however, i want this null to be picked up so i can use it. how can i go about doing that?
...Code:while($row = mysql_fetch_assoc($result)) { echo "<customer_id>" . $row['customer_id'] . "</customer_id>"; echo "<gender>" . $row['gender'] . "</gender>";//
No activity results to display
Show More
Leave a comment: