User Profile

Collapse

Profile Sidebar

Collapse
bytesFTW99
bytesFTW99
Last Activity: Aug 6 '11, 01:50 PM
Joined: Nov 25 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bytesFTW99
    replied to Why is this not working???
    can anyone help on this?
    See more | Go to post

    Leave a comment:


  • bytesFTW99
    started a topic Why is this not working???

    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"
    ...
    See more | Go to post

  • 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...
    See more | Go to post

  • Finding the id of a jquery autocomplete input from within the onItemSelect call

    i have this,

    Code:
    $(function() {
           $('#input').autocomplete('test.php', {json: true});
         });
    that bring back values from the database here is my php section

    Code:
    $result = mysqli_query($db,$query);
    
    while( $row = mysqli_fetch_array($result) )
    {	
    $aResults[] = array( "id"=>($row['s_id']) ,"value"=>($row['s_last']),
    ...
    See more | Go to post

  • 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.

    Code:
    <input type="button" id="addlesson" value="Add Lesson!" onClick="inputter(document.getElementById('testid').value)" />
    here is the inputter function

    ...
    See more | Go to post

  • bytesFTW99
    started a topic where does the & go LOL

    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)
    ...
    See more | Go to post

  • bytesFTW99
    replied to JavaScript SEARCH on var
    could you be more descriptive? are you being charged by the word? why even reply back if your not going to be helpful?
    See more | Go to post

    Leave a comment:


  • bytesFTW99
    started a topic How can i do this

    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
    ...
    See more | Go to post

  • bytesFTW99
    replied to JavaScript SEARCH on var
    i got this to work by getting it
    Code:
    $id = $_GET['id'];
    echo $id;
    Code:
        parent.location='1.php?option=s_ladst&id=' + escape(element);
    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:
     $query = $db->query("SELECT $one, s_last, s_first, id FROM table_student WHERE $one LIKE '$queryString%' LIMIT 10");
    ...
    See more | Go to post

    Leave a comment:


  • bytesFTW99
    started a topic JavaScript SEARCH on var

    JavaScript SEARCH on var

    i have a autosearch that is bringing in a value

    Code:
    <input type="text" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
    this is my function
    Code:
    function lookup(inputString) {
    		if(inputString.length == 0) {
    	// Hide the suggestion box.
    	$('#suggestions').hide();
    	
    	} else
    ...
    See more | Go to post
    Last edited by Dormilich; Oct 29 '09, 09:21 PM. Reason: JavaScript is not Java

  • bytesFTW99
    replied to Unexpected results from a foreach loop.
    in PHP
    thank you very much atli
    Code:
     $qty = $_SESSION['cart'][$_GET['id']];
    is exactly what i need!
    See more | Go to post

    Leave a comment:


  • bytesFTW99
    started a topic Unexpected results from a foreach loop.
    in PHP

    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
    ...
    See more | Go to post
    Last edited by Atli; Sep 24 '09, 07:13 AM. Reason: Clarified the title.

  • 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;
    ...
    See more | Go to post

  • bytesFTW99
    started a topic mysql_fetch_assoc not returning null columns.
    in PHP

    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']
    ...
    See more | Go to post

  • bytesFTW99
    started a topic mysql_fetch_assoc

    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>";//
    ...
    See more | Go to post
No activity results to display
Show More
Working...