BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> openElement General Discussion
  New Posts New Posts RSS Feed - get from forms buttons
  FAQ FAQ  Forum Search   Register Register  Login Login

get from forms buttons

 Post Reply Post Reply
Author
Message
tonytynkkynen View Drop Down
Newbie
Newbie


Joined: Jun 19 2017
Location: sweden
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tonytynkkynen Quote  Post ReplyReply Direct Link To This Post Topic: get from forms buttons
    Posted: Jun 19 2017 at 5:31pm
how to get from forms buttons with php script

Edited by tonytynkkynen - Jun 20 2017 at 8:25am
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jun 25 2017 at 10:23am
Hi,

Please clarify your question, it is incomprehensible.
Back to Top
tonytynkkynen View Drop Down
Newbie
Newbie


Joined: Jun 19 2017
Location: sweden
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote tonytynkkynen Quote  Post ReplyReply Direct Link To This Post Posted: Jun 25 2017 at 10:51am
use php commands after press on form button
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jun 25 2017 at 11:24am
First of all, note that PHP executes on the server, unlike JavaScript that you execute directly in the browser "on the fly". So you should either load a page (same or another), or use Ajax and process the response.

In OE, the Submit Form element is usually used to process the user data. You should manually code your PHP processing, for example in a Code Block (Source) type PHP position Header (or StartDocument or another position depending on what you want to do). To test, you can use the following code:


if (!empty($_POST)) { var_dump($_POST); exit(); }


which will output the form content and stop execution if there's any content sent.


Edited by Dmit OE - Jun 25 2017 at 11:25am
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.051 seconds.