|
Posted by Angus Comber on June 18, 2005, 1:57 pm
Please log in for more thread options
Are you saying I need to do this in something like perl?
Angus
>
>> <form target="mycart"
>
> Target Attribute Considered Harmful. It either opens a new window, or
> you are playing with frames. Both are _bad_. Don't do target, mm'kay?
>
>> <input type="image" src="https://www.website.com/btn/click-but.gif"
>
> Image Submit Buttons Considered Harmful. They win nothing but esthetics
> in the deeziner's eye, and they imply accessibility problems.
>
>> <input type="hidden" name="amount" value="30.00">
>
> Fine. Now I create a copy of your form, edit that element to contain,
> say, value="0.00", and order some stuff for free. If your script
> detects that, good for you. But then you didn't need that hidden field
> in the first place, did you?
>
>> But I would rather make this dynamic. Eg I would have a dropdown
>> box where user could select eg 1, 2, 3 etc User and amount would
>> then be different value.
>
> And what would be the problem with that, apart from the obvious?
> (The obvious part is that it is easier to users to type a number than
> to select an item from a dropdown list.)
>
>> I can create the dropdown no problem but how do I make sure the
>> dynamically selected values are sent to mycart?
>
> You can't, of course. HTML is no programming language. It's a poor
> lonesome data format.
>
> As usual, there will probably be someone who tells you to use
> JavaScript. I wish I were a more dishonest person and took advantage of
> such situations, ordering 1,000,000 widgets for the price of one simply
> by disabling scripting on my browser.
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/
> Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
>
|