Hey,
Ok, i put this in php by mistake...
can anyone help please?
Originally Posted by My First Post
Originally Posted by djr33
Hey,
Ok, i put this in php by mistake...
can anyone help please?
Originally Posted by My First Post
Originally Posted by djr33
Hmmm ok, right, well its basically
year one = 3.25
year two = 6.50
year three = 9.75
and if i select year one i want to see 3.25 in a different readonly box next to the year selection...
Well, just change the values. Simple as that.
If you wanted to do math, you can do that in JS as well.
As for readonly... I'm not sure what the code is for that.
I just tried:
<input type="text" id="result" readonly>
And that worked, though I'm not sure if that's the "official" way to do it. Easy, though![]()
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Oh ok, so do i not need any code..Originally Posted by djr33
sorry for the stupid questions but i dont know javascript very well at all..
What i need is
the user selects eg. 1 year - 3.25
then in a second drop down selects : item 1 - 25.00
then i want a field that adds Drop down one + drop down two,
and displays the result - 28.25
hmm, ok, yeah just sorted that, thank you
i triedPHP Code:if ( $item == "item1, item2" ){
andPHP Code:if ( $item == "item1", "item2" ){
now, this doesnt work, what i want is if item is item1 or item2 then do this:PHP Code:if ( $item == "item1" OR "item2" ){
xxxx
PHP Code:if($item == 'item1' || $item == 'item2'){
//Do stuff here
}
Do you mean to be using php now?
Or is this still a javascript operation?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
excellent, all working now thank you!
now im having a problem passing info via a mail.php
i have an ordering page, --> mail.php --> payment page.
the info goes to the mail.php page but not to the payment page.. can anyone help?
You can probably rig up a redirect, or some hidden fields(remeber to revalidate), but first I need to know what variable you want sent to mail.php
Why didn't you look at the HTML specification? Read-only controlsOriginally Posted by djr33
Mike
Bookmarks