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...
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...
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)...
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...
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...
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
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
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...
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
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.