Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. canajun

    popup menu style listbox

    Thanks for the link.. will explore the other scripts at the site.. perhaps my explanation is not clear enough. The textfield holds a value 4 characters long, but since I desire a more lengthy description, the list box is actually about 25 characters long. Thus, a popup menu (perhaps layer is...
  2. canajun

    popup menu style listbox

    I posted this in the HTML,XHTML,CSS forum incorrectly, and found some help, but not really the answer I was looking for. Here it is: 1 Jul 08 20:48 I have searched for something as simple as this, but with no luck. I have a space constrained form, with several textfields that I want to...
  3. canajun

    DHTML popup to populate textfields

    I have searched for something as simple as this, but with no luck. I have a space constrained form, with several textfields that I want to populate with a DHTML popup.. I don't want the popup to open a new window, but show up on the form page.. This is to replace list boxes that take up...
  4. canajun

    assigning value from query result

    I have tried your suggestion(s), all without luck, but have come up with an alternative solution that solves my problems.. Again, Thanks very much for helping out!
  5. canajun

    assigning value from query result

    <html> <head> <title>Enter Purchases</title> <script language="JavaScript"> function validate(m) { var ename=document.frmExpense.expName.value; var dt = new Date(document.frmExpense.txtDate.value); if(document.frmExpense.expName.value=="") { alert("Enter Purchase Name")...
  6. canajun

    assigning value from query result

    I tried that, but was not able to get the db value of "exp_group" to the pass thru variable of "txtEgroup". Any suggestion how to do that? Thanks
  7. canajun

    assigning value from query result

    OK.. I have this following script which draws info from a table, and populates a drop down box. I need to add a value "txtEgroup" to pass to the file in the action "update_purchase.php?typ=new". The value for txtEgroup is derived from the table exp_item field exp_group. Hope this makes...
  8. canajun

    extracting results when using group

    OK.. that fixed the error code, but it did not return any values.. so I changed : <td>$expense[1]</td> <td>$expense[2]</td> <td>$expense[3]</td> <td>$expense[4]</td> <td>$expense[5]</td> <td>$expense[6]</td> <td>$expense[7]</td> <td>$expense[8]</td> And it worked! Thanks very much for...
  9. canajun

    extracting results when using group

    Ya.. sorry about that.. got distracted.. <td>$expense['e_group1']</td>
  10. canajun

    extracting results when using group

    Hmm.. well that produces errors: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xyz/public_html/res/admin/view_revenue.php on line 198
  11. canajun

    extracting results when using group

    Yes, there is a table of expense types, listing all types of products, which populates a drop down list on a form. Once selected and submitted, the info is passed to the table 'expense'. But this has really nothing to do with my conundrum here.....
  12. canajun

    extracting results when using group

    Dep = group 1 Fish = group 2 Misc = group 3 Snacks = group 4 Groceries = group 5 Cabin = group 6 Campsite = group 7 Rentals = group 8 There may not always be a value assigned to a particular group in a particular time period. Maybe it would be better to assign these values to variables.
  13. canajun

    extracting results when using group

    I have been trying to find answers on my own, and have detected a few errors myself.. perhaps this should really be an array.. so, an explanation of what I want to do: I have various products, and 8 tax groups. When I enter a purchase, it is stored in a mysql db, which contains price, date...
  14. canajun

    extracting results when using group

    Heres my query: $querye = "SELECT e_group, sum(amount * quantity) as total FROM expense where e_date between '$arr1_date'". " and '$dep1_date' GROUP BY e_group"; $resulte=mysql_query($querye,$db_connection); $rowe=mysql_fetch_object($resulte); Which returns the results I want, when run in...
  15. canajun

    select a directory, zip it, then download.

    Ok, that made it work, but now the zip file contains all of the directories in the real path.. ie to get to the end directory, you have to drill down through the path to it.. is there any way to just have the selected directory in the zip file? Thanks again!
  16. canajun

    select a directory, zip it, then download.

    I am trying to modify a script to be able to select a directory from a list of directories, zip it, then download it.. so far, I haven't been successful. here is the form which lists the directories: <table width="541" border="0" align="center" bgcolor="#FFFF00"> <tr> <td...
  17. canajun

    assigning variable value from list box

    Great.. that did it.. Thanks!
  18. canajun

    assigning variable value from list box

    I am trying to assign a value to a variable from a selection in a list box generated by the following code: <form action="rateadmin.php" method="post"> <select name="file"> <? $folder = "rates/"; $handle = opendir($folder); while...
  19. canajun

    Need help with code modification - link using java within PHP

    I think you misunderstood my initial request.. I was looking for a php solution to using a link to a javascript within the php code. Sorry to have offended you with my confusion.
  20. canajun

    Need help with code modification - link using java within PHP

    Ok.. thanks for that, but what I did in the mean time, was jsut add a couple more functions to the javascript. Probably a little bulkier than someone who knows what they are doing, but it works.. Thanks!

Part and Inventory Search

Back
Top