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 Mike Lewis 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. MichaelLewis

    How to open a new page?

    I have a form with three radio buttons. Selecting one of the first two buttons and then clicking the submit button will open page x which is another form asking for more info before going to page y to list data. How do I go to page y (and pass on data in $yy) directly when the third radio...
  2. MichaelLewis

    How to print in xxx,xxx.xx form?

    OK. Shame on me. I should not argue with the masters. I thought the whole of the "<input..." tag was HTML. Also, I had tried the number_format and it didn't work - I must have had an error and didn't see it. I must admit I was a bit rushed at the time. I've tried it again under more calm...
  3. MichaelLewis

    Why does my previous expire?

    My update of the database does not have a form. So rather than setting up a form, based on what you guys told me, I changed my goback funtion (intead of to -1) to the following and that works fine. function goBack() {location.href=\"DataEntryForm.php\";return false; window.open(location.href)...
  4. MichaelLewis

    How to print in xxx,xxx.xx form?

    I disagree. "<input..." is an HTML tag. Nevertheless I looked at the reference you gave me and tried it but it doesn't make any difference. I presume because that's a PHP matter but the "<input..." which prints the amount is HTML. Is there not a way of defining the print format in the...
  5. MichaelLewis

    Why does my previous expire?

    I tried the -3 but it doesn't work. I get the same result. The previous page is simply not there. However, you seem to be correct that it has something to do with the POST. If I turn off the post, it works, but then I can't get the data from the form (or is there another way I can pass on the...
  6. MichaelLewis

    Why does my previous expire?

    To go back to my previous web page, I issue the following: function goBack() {window.history.go(-1)} but then I'm told my web page has expired. Why is this? How do I correct so it doesn't expire? Thanks, Michael
  7. MichaelLewis

    Showing decimal places.

    Sorry for posting to the wrong forum. Thanks for the correct forum reference. Michael
  8. MichaelLewis

    How to print in xxx,xxx.xx form?

    I do $Bal = ($Bal - $row[3]) and then, to print the results, <input readonly size=\"10\" style=\"color:black;text-align:right\" value=\"$Bal\"> But how do I get the format xxx.xxx.xx? Thanks, Michael
  9. MichaelLewis

    Showing decimal places.

    No. This doesn't work. Maybe $Bal result is xxxx.xx but the print on the screen using the "<input..." below results in xxxx (no decimal portion). The value=\"$Bal\" always gives me xxxx if the decimal portion is 0. I guess my question wasn't clear. It is in the print on the screen that I...
  10. MichaelLewis

    Showing decimal places.

    I'm using $Bal = ($Bal - $row[3]); and <input readonly size=\"10\" style=\"color:black;text-align:right\" value=\"$Bal\"> to show the balance of the account. How can I ensure I always get 2 decimal places, e.g. 25.00 and not the 25 which I presently get. Thanks, Michael
  11. MichaelLewis

    Get/Select YY out of DATE

    This solution ...AND Convert(char(2), trdate, 2) = '$yy' does not work. I used the first solution, YEAR(trdate)='$yy' (with quotes) but I first added 2000 to my $yy. My application's data will not go back to the 1900's and I'm sure it wont be used past the expiration of the 2000's. Many...
  12. MichaelLewis

    Get/Select YY out of DATE

    How do I get the YY out of my Database trdate (defined as DATE)? i.e., I want to SELECT * FROM transactions WHERE user = '$UserID' AND trdate = '$yy' ($yy is a 2 digit year) Thanks, Michael

Part and Inventory Search

Back
Top