stwa
(Noughts)
1
I created a simple form by using CForm.
It have imaged submit button by like a code below,
'buttons'=>array(
'create'=>array(
"class" => "submit_button",
'type' => 'image',
"src" => "/images/post_button.gif",
'label' => 'submit',
),
),
It works perfectly in Firefox, but not works in InternetExplorer( 6,7,8 ) collectly.
When I clicked submit button, data was not send and just reload the same page.
I inspect for a while, and found that
Firefox sends "create" value in $_POST at clicked submit button on code above,
but IE sends "create_x" and "create_y" value in $_POST,
and I think Yii could not catch I pushed submit button in CForm::submitted().
I’m sorry for my poor English.
Yii is great framework.
Thank you.
trejder
(Tomasz)
2
Can anyone confirm, this really happens? If so, a bug ticket should be opened to report it as a bug.
I made a very quick check, if both mentioned browsers sends the same parameters in GET, if a form contains graphical submit button.
I used XE page for this purpose and found out that Firefox sends:
http://www.xe.com/ucc/convert.cgi?Amount=1&From=EUR&To=USD&image.x=42&image.y=12&image=Submit
while IE sends:
http://www.xe.com/ucc/convert.cgi?Amount=1&From=EUR&To=USD&image.x=45&image.y=11
So the only difference is in Firefox sending additional:
&image=Submit
But XE site is not build on Yii, therefore inside Yii it might be possible as post creator wrote
mdomba
(Maurizio Domba Cerin)
3
@alper
this is not relay like your problem… here is about CForm and an "image" submit button…