Dynamic form action POST to results page - Joomla! Forum - community, help and support
hi, had created function modify form's action upon clicking on button. if post normally, , work, not doing way.
this code:
when attempt press either of buttons, error 404 saying article not found. had created results page , linked appropriate page it. appreciated! thank you! =)
code: select all
<form action="results-page" method="post" enctype="multipart/form-data">this code:
code: select all
<script type="text/javascript">
function onsubmitform()
{
if(document.pressed == "")
{
document.myform.action = "pdf-action";
}
else
if(document.pressed == 'update')
{
var answer = confirm("confirm change of status confirmed shipped?.")
if(answer){
alert("order status updated. page refreshed.")
document.myform.action = "delivery-option";
}
else{
alert("order status unchanged. page refreshed.")
}
}
return true;
}
</script>
when attempt press either of buttons, error 404 saying article not found. had created results page , linked appropriate page it. appreciated! thank you! =)
Comments
Post a Comment