Jump to content

superdan_35

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

superdan_35's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the help. I have now used a background png and all is fixed. What would be the pngfix? Dan
  2. I have recently changed the design of a site to incorporate a transparent background in div containers using the new CSS3 styles. The only problem is that any images I have within these div containers also become transparent. The page in question is a div container with a table inside. The image (a jpeg with solid white background) is placed inside the table with a div of it's own for styling. I have tried setting opacity for the image div as well as background colours and images, none of which work. I have also tried to give the table cell a background colour. Any ideas would be brilliant! Thanks, Dan
  3. Hi all. On my site I had a fully working lightbox that called various scripts in the headtag, one of which is the prototype script. I have now added a new script to the homepage called easySlider1.7 which requires jquery. Since this addition only one script will work at a time depending on which is called first, prototype first means lightbox works, and jquery means easyslider works. Any ideas on a work around or why this might be happening. Thanks, Dan
  4. Hi all. I am trying to make a form where the user enters the number of entries they wish to make into a textbox and that amount of new textboxes would automatically appear below. Any suggestions? Thanks, Dan
  5. Wow, that's fantastic. Thanks very much for the quick reply. Not so much a problem, but is there anyway to avoid the result in the final box being NaN until all boxes are complete, or in other words, not requiring input into all the boxes? Thanks again, Dan
  6. Hi all. I have a form with 5 text boxes for the user to enter numbers. I would like to have a sixth text box at the end that adds up the total of all the other inputs. I assume that this can be done and will require javascripting or AJAX? The page is built in php and ideally I would like it to be done without the page reloading, hence the javascript. Thanks, Dan
  7. Thanks for you help. It now works perfectly! Dan
  8. Hi all. I currently have a database that stores various details relating to each day in a business. I want to be able to take the last date something was entered and display a form for the user to enter the details for the next seven days. I have selected the most recent value from the database, which is of type date("Y-m-d"), but now I cannot work out how to increase it. I have tried to add 1 but that increases it by 1 year, I have tried to increase it by seconds but as it's not a timestamp that doesn't work. I have searched around for a while and had no luck. So I have considered splitting up the date, increasing the day value and putting it back together, but before I try that does anyone have any suggestions? Thanks very much, Dan
  9. Ok, this is where I am! I currently have the following for my form: // Show drop down of staff members <select name="staffname" onchange="showStaff(this)"> $i = 0; while ($i < $num) { echo '<OPTION value='.$assos_id[$i].'> '.$staff[$i].''; $i++; } </select> // Run query based on selection $query = @mysql_query("SELECT * FROM staff WHERE staff_id LIKE $staff_id"); $row = mysql_fetch_object($query); // Show results First Name: <input type="text" name="fname" value="'.$row->fname.'"/> Surname: <input type="text" name="lname" value="'.$row->lname.'"/> // And do on The JavaScript function has been created to show it works but has no relevant functionality: <script language="javascript"> function showStaff(choice) { var choice = choice.options[choice.selectedIndex].value; alert (choice); } </script> So how do I manipulate the php in the function and send it back? Or in otherwords, how do I get choices from the JavaScript to be staff_id in the php? Thanks again, Dan
  10. Thanks, I will have a look and let you know tomorrow! Dan
  11. Thanks for the quick reply. If the drop down has say 10 items, each with the id from the database as the key, could I use the onChange to set a variable called, for example, selected. Then use selected in a query to find all the associated details and add them to the text boxes. If this is correct I have the code set up below, but I don't know what to do for the onChange? // Fill the drop down <select name="staffname" >'; $i = 0; while ($i < $numstaff) { echo '<OPTION value='.$id[$i].'> '.$name[$i].''; $i++; } echo '</select>'; // Get the chosen ID and run query $selected = ; $query = mysql_query("SELECT * FROM staff WHERE staff_id LIKE $selected"); // Display result in text text boxes
  12. Hi all. I have a basic form with a drop down list then some text boxes whose purpose is to edit data stored in a database. The user would select what they want to edit from the drop down list and the current values would dynamically appear in the text boxes ready to be changed as required. Aside from the database, the form and populating the drop down I have nothing! I am aware that I could use a separate php script through the form action but I don't want to add an extra click as the user has already made two to get to this page. I therefore am thinking down the route of a java onChange event, which in know isn't php but both languages are going to need to be incorporated, aren't they? Any suggestions? Thanks, Dan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.