Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
7
Erster Beitrag:
vor 2 Jahren, 5 Monaten
Letzter Beitrag:
vor 2 Jahren, 4 Monaten
Beteiligte Autoren:
cardcoder, Allard, Fabrice Harari

WB17 with PHP

Startbeitrag von cardcoder am 22.01.2016 10:13

Good morning guys,

This is probably an easy one for the gurus amongst you.

I want to run a php script to capture edit boxes currently displayed on a page.

Stingbuild is used to create the html button when the page is displayed BUT if any edit box page is changed, I want it to update the html button AND run a php script to log the change.

I hope that I have made sense.

TIA

Mike

Antworten:

Hi Mike,

I'm not sure what the question is, to be honest... But I'll play anyway: ScriptExecute ?

Best regards

von Fabrice Harari - am 22.01.2016 12:47
Fabrice,

Thanks for responding. I did look at scriptexecute but I don't think it will do what I need.

I have 2 html buttons created to fire either paypal or worldpay. I need a way to log easily which button was pressed and add it to a mysql table as a log.

Thanks again,

Mike

von cardcoder - am 22.01.2016 13:06
Why not use wlanguadge for that ? It is far easier to code that with wlaguage than raw php.


regards
Allard

von Allard - am 23.01.2016 14:40
Hi Allard,

I would like to us wlanguage BUT -

I have 2 HTML controls on the screen linked to individual CMD Controls. I want to write to the log whichever html control was used.

I use stringbuild to create the html buttons. This works exactly correctly for both buttons.

How do I write the code to the log as to which html button was pressed. I can see which one was pressed because it brings up the new webage - but I am struggling to write the log correctly.

I am obviously missing something simple.

Regards,

Mike

von cardcoder - am 24.01.2016 16:27
Hmm I see

So you create a html button in a html control. I can see your problem. There is no button click event for that.

Just my thoughts

Maybe you can make a webserveice or webdev php page with no page and call that form the code in the html control. The code gets a parameter and runs a proces ( saving your log ) and stops working

You can call it like this:
http:// yourpage.com? param

regards
Allard

von Allard - am 25.01.2016 09:26
Hi Allard,

As it fires the button..alias, I am trying to add something to the click of the button.

Still trying... so if I work it out, I will post the result. Don't hold your breath!!

Mike

von cardcoder - am 26.01.2016 12:26
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.