Whats the best way to debug these „get“ ID variables, as I‘m having several troubles to get from a table list with Adverts my:
Advertdetail/Update Modalform1
CustomerDetail/Update Modalform2
when one Modalform shows details, then the other doesnt and the opposite. But I‘ struggling with having mostly empty modal forms. So query isnt passed properly. Maybe the variable with $GET doesnt work good. But in general whats the best practice to debug modal/get variables? Maybe I better go with a separate page called updateAdvert.php and updateCustomer.php but that way I blow up my project
I keep regular back ups of the complete site. Easy to do on a Mac anyways. Just select the folder in finder and compress it to a zip file. I usually do this before making any big changes or something that I am not . confident in.
As an advert has a “customerid” and “advertid” and i got two buttons:
But EDIT never works. Either one modal works, or the other. Maybe I’m mixing ID’s … not sure
Where you said you’re debugging? I got that console in wappler. but shows only copy file success, synchronization success etc. Nothing what I really need…
You can configure the number of versions it will save. Searching for backed up files is almost instant.
Before I make any serious changes to a file - particular to a server action file - I make a copy of it. (I would really like right-click options to save a copy or open Explorer in Server Connect.)
Ok looks like the autogenerated “Save” Button works. Will try to find out whats the difference between the button in the “modal” and the button from the autogenerated form…
The button in the auto generated is a type=“submit” firstly and secondly it is inside the form so it submits easily.
Change the modal space button to type=“submit” and use for form attribute to give it the if of the form tag so it knows what form the button is submitting.