Birden bir formda Gönder düğmesi

0 Cevap php

Hey Web Programlama için çok yeni. Ben son birkaç gün PHP öğrenme edilmiştir ve ben bir şey şaşırıp.

I have a form tag in my code which has two submit buttons to manipulate on the data. Since I can have only one action definition on my form tag, it can lead me to one page only. (Not very sure)

Now depending on the button clicked on the form, I want to load a different page. One way is to check the button clicked in an if-else construct and then use echo '...' in the branches and show as if it is a different page. But it doesn't seem right for some reason. Can some one give me a better solution? Thanks.

0 Cevap