JackTheRussel
Programmer
Hi.
How can I call different functions (in different buttons) ?
I have form where is upload-image button and execute button and textarea column.
Upload-image button let users to browse filesystem and select picture and then script saves picture to the folder /tmp.
execute-button writes textarea content to the file which are located in folder /tmp.
Now I don't know how can I make script which would call save_image function when user pushes upload-Image button.
and when user pushes execute-button it would go to the write_text function?
Now I have this kind of function call
So how can I make that If user pushes buttonX it goes to function X. If user pushes button Y it goes to function Y ?
How can I call different functions (in different buttons) ?
I have form where is upload-image button and execute button and textarea column.
Upload-image button let users to browse filesystem and select picture and then script saves picture to the folder /tmp.
execute-button writes textarea content to the file which are located in folder /tmp.
Now I don't know how can I make script which would call save_image function when user pushes upload-Image button.
and when user pushes execute-button it would go to the write_text function?
Now I have this kind of function call
Code:
if ($q->param()) {
save_file($q);
}
So how can I make that If user pushes buttonX it goes to function X. If user pushes button Y it goes to function Y ?