problem with variables using form input images types in IE
|
| View previous topic :: View next topic |
| Author |
Message |
Kopilman
Joined: 25 May 2006 Posts: 162
|
| Hey there. I've got a little problem here. ie dosen't properly pass $_POST variables using form input images types. So I wish to use javascript onclick ability to maybe set some different post values (since I have multiple buttons on which rely my php script, I can't only submit the whole form, I need different kind of submit values)... btw, first time I actually get my hands on some javascript. If anyone could help... |
| |
|
|
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
| so what is your question? |
| |
|
|
PaulKolin
Joined: 25 May 2006 Posts: 108
|
| Kopilman, The safest solution is to give them different names, then check for the existence of name_x or name_y in the POST data. No need to throw unreliable JavaScript into the mix. |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
PaulKolin, yea I tought about it but found it kinda dirty but maybe your right... more I think of it, the better it seems compared to the javascript option.
Ok, you convinced me... I'll give it a try |
| |
|
|
|
|