Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read

Activity for JohnDoea‭

Type On... Excerpt Status Date
Comment Post #285130 @#53078 I swear that I have no idea what is the "a lot" of missing information. No sarcasm (and not anything like it), I just really don't know how to further improve this question...
(more)
about 5 hours ago
Comment Post #285130 > "send data" means making a http request I knew that. > using fetch with POST method (there's an example in the docs) And you can use FormData to send the form fields (if I understood correctly what you need) But I want to keep the email address in a backend file (behavior.php) so it won't ...
(more)
about 6 hours ago
Comment Post #285130 @#53078 I don't know what you meant by "you'll have to send data to it". By the way, given the heavy down voting and the edits, I invite you to backup your code as I might just delete this thread.
(more)
about 16 hours ago
Edit Post #285130 Post edited:
about 16 hours ago
Edit Post #285130 Post edited:
about 16 hours ago
Edit Post #285130 Post edited:
about 18 hours ago
Edit Post #285130 Post edited:
about 18 hours ago
Edit Post #285130 Post edited:
about 18 hours ago
Comment Post #285130 @#53078 I don't think that's what I want to do. I want to send all form data to an email address according to the directives in a backend file ("behavior.php"), with: ```php <?php $topic = $_POST['topic']; # Required; $name = $_POST['name']; # Required; $email = $_POST['email']; # ...
(more)
about 18 hours ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Comment Post #285130 @#53305 I prevented the form's default behavior (which is all backend and moves the user to a standalone "Your message has been sent" webpage) with `preventDefault()`, so that a user could submit the form with Ajax and that then the form will be hidden by JavaScript (`style.display = "none"`) and ...
(more)
1 day ago
Comment Post #285130 I tried to redefine the problem and ask a better question.
(more)
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Comment Post #285130 @#53305 The PHP file with backend directives (email address and such) is not the same PHP file containing the form's HTML (perhaps you meant to say that they should be the same?). I hope you will excuse me if I would try to edit the question to not have an XY problem.
(more)
1 day ago
Edit Post #285130 Post edited:
1 day ago
Comment Post #285130 @#53305 thanks, I misunderstand something --- if I don't specify a specific backend file (as I would do with the `action` attribute) how could `submit()` or `fetch()` "know" which backend directives (from all those available in the server) to use?
(more)
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Post edited:
1 day ago
Edit Post #285130 Initial revision 1 day ago
Question How to submit form data with Ajax?
I need to apply backend behavior (PHP directives in my case) to an HTML ``. The backend behavior I wish to apply to the form is in this pattern (behavior.php): ```php ``` The way I know to do this is with this HTML pattern: ```html ``` Now I have a form that the default behavio...
(more)
1 day ago
Edit Post #285068 Initial revision 6 days ago
Question Hash sign as a path component in a user script's @match command prevents the script from running
I try to exactly match a login page in a website, for a user script manager (USM) script, which I run with Tampermonkey. This pattern didn't work: // @match https://example.com/#/login This pattern worked: // @match https://example.com/ Why would the Hash sign (`#...
(more)
6 days ago
Comment Post #285054 @#53177 thanks, I don't know why but regarding the particular form I worked with, I did have to explicitly dispatch the `change` event for the details (inserted with `value`) to be recognized/effective and Moshi's way worked for me to do that.
(more)
6 days ago
Edit Post #285054 Post edited:
6 days ago
Edit Post #285054 Initial revision 6 days ago
Question How to fire the change event for an input field?
I have added some input to an input field element this way: ```js const inputFiled = document.querySelector("#example"); inputField.value = "X"; ``` I want to fire a change event for that field right after the input was added. This is something I want to try after noticing that the input ...
(more)
6 days ago
Edit Post #285019 Post edited:
7 days ago
Comment Post #285019 @#53078 I already tried that before asking the question from a user script manager (I also tried listening to the `load` event) but it didn't help. Even if I put the value directly after everything was loaded via the browser console, the problem persists so something prevents the value from bei...
(more)
7 days ago
Edit Post #285019 Post edited:
8 days ago
Comment Post #285020 There are no "very basics" I went beyond; I have done a simple action and got a result different than yours; I didn't say where the test was done (not on a website I have built) and I should edit but I am asking what may be the possible reasons to why I get this non-normal result and given the simpli...
(more)
8 days ago
Edit Post #285019 Initial revision 8 days ago
Question Why would a form value inserted with value property won't be effective?
In a website I didn't build, I want to put a value in an HTML input field element with JavaScript and to also use it as-putted. I can put it with the browser console this way: ```js document.querySelector("#example").value = "X"; ``` But, the value isn't effective (isn't recognized by the ...
(more)
8 days ago
Comment Post #284981 In a glimpse with a quick search I didn't notice `All existing nodes are removed from the document.`; Won't it be more correct to say that it's not only the "old" DOM document nodes that are removed, rather the entire "old" DOM document itself?
(more)
12 days ago
Edit Post #284980 Initial revision 12 days ago
Question document.open() and the DOM tree of the loaded (closed) browser window on which it works
If I execute in browser console: ```js document.write("Hello"); ``` A new DOM document with the text Hello appears in the same browser window. From MDN documentation: > Note: Because document.write() writes to the document stream, calling document.write() on a closed (loaded) document a...
(more)
12 days ago
Suggested Edit Post #284978 Suggested edit:
I have deleted the relevant part from the question post.
(more)
declined 12 days ago
Edit Post #284977 Post edited:
12 days ago
Edit Post #284977 Post edited:
12 days ago
Edit Post #284977 Post edited:
12 days ago
Edit Post #284977 Post edited:
12 days ago
Edit Post #284977 Initial revision 13 days ago
Question What is the difference between a decoupled, Headless and RESTful content management system?
By means of content management system architecture, Is the implementation of decoupling architecture (backend and frontend separation), headless architecture and Representational State Transfer (REST) necessarily related?
(more)
13 days ago
Comment Post #284935 I have minorly edited; in my mind, this code is ordinal (imperative is the right word, I think); stage after stage, and that's what I want to understand in a constructed answer which could resemble good code comments, not general documentation about each command.
(more)
16 days ago
Edit Post #284935 Post edited:
16 days ago
Edit Post #284935 Initial revision 17 days ago
Question Understanding createTreeWalker method in the context of replacing strings (or parts of them)
I want to ensure I understand the following code; credit to user:m3g4p0p on Sitepoint, for this code: ```js const walker = document.createTreeWalker( document.body, NodeFilter.SHOWTEXT ) let node; while ((node = walker.nextNode())) { node.textContent = node.textContent.replace('a...
(more)
17 days ago
Edit Post #281139 Post edited:
25 days ago
Comment Post #281139 Thanks Andrew; sorry for the late reply; mistake fixed.
(more)
25 days ago
Edit Post #281139 Post edited:
25 days ago
Comment Post #284853 I especially like (the best for my use case): ```js // select descendants of body instead of the whole document document.body.querySelectorAll("*").forEach((e) => { e.style.fontFamily = "Arial"; }); ``` Thanks for your answer.
(more)
26 days ago
Edit Post #284842 Post edited:
I clicked approve by mistake, that wasn't my original intent; I didn't really mean to change it for all elements but for all body elements
26 days ago
Comment Post #284844 Between `"body"` and `"*"`. I understand that `"body"` goes only on its direct children, but `"*"` goes on everything.
(more)
27 days ago
Edit Post #284842 Initial revision 27 days ago
Question Change font-family with JavaScript
I want to change the `font-family` of all elements in a document with JavaScript. I have tried this: ```js document.querySelectorAll("body").forEach( (e)=>{ e.style.fontFamily = "arial"; }); ``` This changed the font-family of generally everything besides what already had a `font-fam...
(more)
27 days ago
Edit Post #284841 Post edited:
27 days ago
Edit Post #284841 Post edited:
27 days ago
Edit Post #284841 Initial revision 27 days ago
Answer A: How to grant privileges to a user on a database specifically (i.e. not globally) in PHPMyAdmin?
Under User accounts > (user) Edit privileges, there is a tab I would define as "somewhat hidden", named "Database" which is different than the default "Global" tab; There, one could control which database-specific privilege/s a user has. 1) Image depiction 1 2) Image depiction 2 3) ...
(more)
27 days ago
Comment Post #284838 @#53305 indeed, I also read that part before asking but exactly there under "User accounts overview" I didn't find any place to do the match / association. Only now I found a tab "Database" which was different than that of "Global".
(more)
27 days ago
Edit Post #284838 Post edited:
27 days ago
Edit Post #284838 Post edited:
27 days ago
Edit Post #284838 Post edited:
27 days ago
Edit Post #284838 Initial revision 27 days ago
Question How to grant privileges to a user on a database specifically (i.e. not globally) in PHPMyAdmin?
In PHPMyAdmin 5.1.1 I have created a user account and a database with the same name and granted all privileges to the user on that database. I have exported the database to a backup file, deleted the database, recreated the database empty (i.e. created a new empty database with the same name) and ...
(more)
27 days ago
Comment Post #284811 @#53305 done, thanks.
(more)
28 days ago
Comment Post #284811 @#53305 if you have downvoted please consider to retract the downvote, also, if you think I have addressed the problem in a good way please consider to delete this comment.
(more)
28 days ago
Comment Post #284811 @#53305 I have edited; I assume that the current phrasing is much better.
(more)
29 days ago
Edit Post #284811 Post edited:
29 days ago
Comment Post #284811 Sorry, bad phrasing, I meant that it does not allow CSS editing in the module itself (well, besides, adding classes).
(more)
29 days ago
Edit Post #284811 Post edited:
29 days ago
Edit Post #284811 Initial revision 29 days ago
Question Fixing vertical discrepancies with CSS
I have a "Our menu" webpage automatically created with Drupal 9 Views module which presents a miniature version of each menu dish webpage in that "Our menu" webpage (illustration image below). My problem The Drupal 9 Views module doesn't allow styling with CSS besides adding theme-dependent cla...
(more)
29 days ago
Comment Post #284465 @#53078 I know this approach from years back, again, the rendering here is different than in my (RtL-languaged) MediaWiki website, even this way.
(more)
2 months ago
Comment Post #284386 I didn't mean to ask "what is event delegation?" ; I only meant to asked what is the difference between it to other, much simpler event handlers as those in the example (so to need extra terminology). If the question is unclear, it should be clarified why in the comments or if the question is too ...
(more)
2 months ago
Comment Post #284465 @#53177 If I would do that (exactly as the text appears in the CMS), the text would be rendered incorrectly because of the way Codidact renders text. Here is an example: <div dir="rtl"> מתודת document.write() </div> This is different than the apperance in MediaWiki.
(more)
2 months ago
Edit Post #284465 Initial revision 2 months ago
Question &lrm; character jumbles text and this can be confusing when working with many articles
I often work bidirectional text in content management systems and often that text has parenthesis (`()`) or other textual wrappers flipping after an English text which is preceded in itself by some Right-to-Left text. For example, with Hebrew, I get the following output: Preceding Hebrew wi...
(more)
2 months ago
Comment Post #284420 @#53078 I think I have more of a problem with (what I grasp as) long passages rather than with long texts but again especially in English; it was always easy for me to read long passages in printed edition because then I could use markers of a given color order (Yellow, Orange, Green, Pink and Light-...
(more)
2 months ago
Comment Post #284420 I want to add that in my elementary JavaScript studies in teamTreehouse.com none of the courses (at least as I remember) got down to such levels about `innerHTML`, I personally think that `innerHTML` is not an elementary topic in JavaScript.
(more)
2 months ago
Comment Post #284420 @#53078 I have retracted the downvote due to what I recognize as sincerity, respect, and a real desire to understand me from your side.
(more)
2 months ago
Comment Post #284420 I never studied about the `this` keyword in JavaScript. Thank you.
(more)
2 months ago
Comment Post #284420 @#53078 I don't think that my question symbols "misconceptions and misunderstandings about the language" because my question deals solely with the `innerHTML` property; you wrongly accuse me of misunderstanding "the language" due to some misunderstandings about `innerHTML` which does much more than m...
(more)
2 months ago
Edit Post #284415 Post edited:
2 months ago
Edit Post #284415 Post edited:
2 months ago
Edit Post #284415 Post edited:
2 months ago
Comment Post #284415 I might have confused textContent with innerText (due to the similarity with innerHTML) the mess in the naming there is crazy. I should make to myself a small note about the various names and their meanings.
(more)
2 months ago
Comment Post #284420 From your answer I could figure that `innerHTML` is a non-modular (does few different things that could be done each one with a dedicated module) and easily-confusing property that should just not be used unless it is to print HTML data of an element.
(more)
2 months ago
Edit Post #284415 Post edited:
2 months ago
Comment Post #284415 @#53305 I seem **to you** to be "confused", okay, but I am not, I just had one or more mistakes, heavy down voting doesn't help and commenting about anything which isn't the mistake/s doesn't help, this why I can't focus on the actual help you seem **to me** to try to give; as I have said in another ...
(more)
2 months ago
Comment Post #284420 I as a non native English speaker, junior JavaScript programmer and as going through much stress, in part due to massive down voting to my questions which I believe originates in personal persecution just can't understand your answer as a whole in this longevity and/or lack of `##` headings; in my un...
(more)
2 months ago
Comment Post #284415 I think I can't provide that if we treat any change in the entire DOM (may it be for just one character) as a value change with the DOM as a whole (whatever comprises it) being a value of the document; due to your comments I have changed that phrasing.
(more)
2 months ago
Edit Post #284415 Post edited:
2 months ago
Comment Post #284415 I knew that, I meant changing (that aspect) of the HTML structure, anyway, I have edited to clarify, please review.
(more)
2 months ago
Edit Post #284415 Post edited:
2 months ago
Edit Post #284415 Post edited:
2 months ago
Edit Post #284415 Post edited:
2 months ago
Edit Post #284415 Post edited:
2 months ago
Comment Post #284415 I find that particular webpage confusing and hard to read, but I'll try to update the question based on some use-case headings in it.
(more)
2 months ago
Edit Post #284415 Initial revision 2 months ago
Question What problem does innerHTML solves?
I understand that `innerHTML` does all the following actions: It makes the element we work on (or even the entire DOM tree that we work on if that element is ``) to be copy-pasted into a new empty document The new document to which the data was copied, naturally lacks any JavaScript of the prev...
(more)
2 months ago
Edit Post #284379 Post edited:
In my mind, the passing of even 1 millisecond is a possible defined event but okay, if it's not formal in the JavaScript documentation as an event, I remove this from here.
2 months ago
Edit Post #284379 Post edited:
2 months ago
Edit Post #284379 Post edited:
2 months ago
Comment Post #284386 @#53078 I think that you could just say "setTimeout and setInterval" aren't defined as events formally as could be understood from here" and that's it, all the massive text isn't required IMO. I have already asked exactly what I want to know. I have already told you I know what events are and t...
(more)
2 months ago
Edit Post #284379 Post edited:
2 months ago
Comment Post #284386 Hello, I down voted because I think the longevity is extreme and unjustified and because I think you have possibly made some wrong assumptions about me; before posting the question I already knew what events are, what arrow functions are and what callback are; I also disagree that `setTimeout` or `se...
(more)
2 months ago
Edit Post #284379 Post edited:
2 months ago
Edit Post #284379 Post edited:
2 months ago
Edit Post #284379 Post edited:
2 months ago
Edit Post #284379 Initial revision 2 months ago
Question What is the main difference between event delegation to other event handling patterns in JavaScript?
I define a software event as any state of a program to which we can probably respond. In JavaScript, how does event delegation differs from more simple and probably more common event handling patterns such as: `window.addEventListener('DOMContentLoaded', () => {} );` `window.addEventListener...
(more)
2 months ago
Comment Post #284274 While I should load the first file into the DOM, that's not what I should do with the other two files (they should be loaded from within the appended HTML but it doesn't happen for some reason I should try to isolate and take care of).
(more)
3 months ago
Comment Post #284274 Thanks @#53078 what I am ought to do is to load a certain module of three files (patterned as `structure.html`, `style.css` and `image.svg`) into the DOM of each webpage in my website. I seek a JS solution is because I prefer not to touch the PHP template files of my content management system.
(more)
3 months ago
Edit Post #284274 Post edited:
3 months ago
Edit Post #284274 Post edited:
3 months ago
Edit Post #284274 Initial revision 3 months ago
Question How to load two or more files in one AJAX call?
In my browser's JavaScript console I can add to the `` element one file (index.html) with the following AJAX code: ```javascript const whereToLoad = document.querySelector("body"); const ajax = new XMLHttpRequest(); ajax.open("GET", "/index.html", false); ajax.send(); whereToLoad.innerHTML +=...
(more)
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Post edited:
3 months ago
Edit Post #284260 Initial revision 3 months ago
Question How to append HTML to the DOM with JavaScript?
I have a `.html` file containing only the following data, and I keep that file on top of my website's directory. ```html WhatsApp call ``` I want to append that HTML data in into the DOM, so that the code will effect my website. I can paste...
(more)
3 months ago
Edit Post #284220 Post edited:
3 months ago
Edit Post #284220 Post edited:
3 months ago
Edit Post #284220 Initial revision 3 months ago
Question Executing a PHP HTML-CSS container on top of various content management systems
I have created two PHP modules, one is a contact form module and one is a a sticky "call now" module. I can access the contact form by `example.com/contactform.php` but in contrast, `example.com/callnow.php` shouldn't be a standalone webpage, rather just a container for some HTML and CSS which I w...
(more)
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Comment Post #283975 @#53078 Even when the required script had only `alert("hi");` the infinite loop behavior continued (until after about one hour), perhaps it's a caching matter; if required initiates cache then that's just another reason why I shouldn't use it.
(more)
3 months ago
Comment Post #283975 @#53177x I don't believe that `@require` USM function is what I need because using it caused an infinite loop in google.com in Tampermonkey for some reason and it might raise compatibility issues in different USMs. Please consider to delete this thread because the main concern of improving the questi...
(more)
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Post edited:
3 months ago
Comment Post #283975 Thanks Alexei, this is not what I need --- I have updated the question to clarify.
(more)
3 months ago
Edit Post #283975 Post edited:
3 months ago
Edit Post #283975 Initial revision 3 months ago
Question How to run a remote JavaScript file from GitHub?
I have a JavaScript file in GitHub which I typically run by copy-pasting all its data into different user script managers (USMs) on different web browsers. I need to start executing that remote file directly from GitHub instead, because for me it's a problem to maintain two or more versions, each ...
(more)
3 months ago
Comment Post #283615 Hi, thanks; I just don't know much about PHP in general and need to learn more about it. The JavaScript I meant to is client side.
(more)
4 months ago
Edit Post #283615 Initial revision 4 months ago
Question How to include HTML files in another HTML file with vanilla Javascript?
I develop an HTML-CSS-JavaScript-PHP contact form and I have a large HTML file which is very long and very wide (lots of horizontal scrolling due to nesting) and it's hard for me personally to work with. I want to split the HTML file to different HTML files; all called/included/imported from one c...
(more)
4 months ago
Comment Post #283596 The question is principal so I think no further code is needed.
(more)
4 months ago
Comment Post #283596 Yes, example and .example refer to the `ul` (sorry for not mentioning before).
(more)
4 months ago
Comment Post #283596 Hi, I can add HTML but it's a long list of li children with much content in the deletion log of Wikipedia, so I prefer not to add it; indeed it's just a `ul` and `li` list, that's all the HTML in pattern/in principle, I just misunderstand the MDN documentation about where is the `this` in the code.
(more)
4 months ago
Edit Post #283596 Post edited:
4 months ago
Edit Post #283596 Initial revision 4 months ago
Question Function.prototype.call()
I wanted to print to browser console the number of `li` list items of a given `ul` list. This didn't work (console output was undefined): ```js console.log(document.querySelectorAll(".example").length); ``` This worked (console output was a plausible number): ```js [].filter.call( ...
(more)
4 months ago
Comment Post #283177 Yes, I know what you mean, I agree, perhaps in Drupal 10 the automated upgrades initiation would be finished: https://www.drupal.org/about/core/strategic-initiatives/automatic-updates
(more)
4 months ago
Edit Post #283177 Initial revision 4 months ago
Question Migrating a MediaWiki website to Drupal
I consider to migrate a large MediaWiki website to Drupal 9. All the webpages include MediaWiki syntax, just one example is the link syntax: `[[ARTICLE NAME|LINKTEXT]]` for internal links `[URL LINKTEXT]` for external links My problem is that everything I will copy with MediaWiki syntax ...
(more)
4 months ago
Edit Post #282925 Post edited:
4 months ago
Comment Post #282925 I vaguely recall I have learned about that term a few years back in relation to JavaScript but going through some Google results for `"compound variable" javascript` I found only different informal definitions, nothing from MDN. I should edit to remove it.
(more)
4 months ago
Edit Post #282925 Post edited:
4 months ago
Edit Post #282925 Post edited:
4 months ago
Edit Post #282925 Initial revision 4 months ago
Question Why storing variables inside a variable?
In the past I have read about the fact that some programmers use a variable to hold two or more variables (instead holding a mere value or an array). There might also be cases when programmers use a variable to hold just one other variable. What could be a good typical simple example for the need...
(more)
4 months ago
Comment Post #282828 I don't know what you meant to say, I only have some minor experience with JavaScript, Bash and a taste of PHP, I don't really know any other programming language but some programmers are very experienced with many languages (10-12 languages) and might be able to share with us an answer.
(more)
5 months ago
Comment Post #282828 I never came across such a feature besides Bash manual or release notes for new versions of languages.
(more)
5 months ago
Edit Post #282828 Post edited:
5 months ago
Edit Post #282828 Initial revision 5 months ago
Question Are the terms "property" and "method" practical in programming languages other than JavaScript?
I would say that the terms "property" and "method" are basic in JavaScript programming (at least in the context of web/front), but are they basic or common in other programming languages such as C, Python, Java, C#, Ruby, etc. ?
(more)
5 months ago
Edit Post #282750 Initial revision 5 months ago
Question A standard about content types when creating a web shop with Drupal
I would assume the following content types would be standard when creating a web shop with Drupal but maybe I am wrong: Home page Article page Product page Service page Another page Are there Drupal standards or formal recommendations (perhaps by Acquia?) about which content types to s...
(more)
5 months ago
Edit Post #282732 Initial revision 5 months ago
Question Is it possible to mutate the DOM directly from HTML, without any JavaScript?
All the ways I know of to mutate a DOM are JavaScript. Just for broadening general knowledge I want to know if there is any common way to mutate the DOM via HTML itself, without involving any JavaScript (perhaps some internal HTML function that will cause this).
(more)
5 months ago
Comment Post #282581 I don't know if you are right that there would be no benefit for using one above the other for a simple contact form so I can't reply about any "expected deeper insights".
(more)
5 months ago
Comment Post #282581 In a "simple" case such as a typical contact form, I would expect for some advice based on developing similar piece of software.
(more)
5 months ago
Comment Post #282581 Hi, I misunderstand the comment; there should be no full page refresh at anytime.
(more)
5 months ago
Edit Post #282581 Initial revision 5 months ago
Question Storing input from different frontend webpages of a multi page contact form
I consider creating a multi-page contact form in which there is one backend page but about 5 front-end pages (stage 1-5). Pages 1-4 are input pages and page 5 is for a submit button and a success message. I understand that I can save the data of each stage (before the form submit in stage 5) i...
(more)
5 months ago
Edit Post #282532 Post edited:
5 months ago
Comment Post #282532 @hkotsubo‭ I have already edited the question, you are welcome to review. in general I separate HTML from PHP; I don't want to use PHP for creating rather static HTML that I can easily create and change by myself. As I have tried to clue, for me, having something like 80 lines (with the amount ...
(more)
5 months ago
Edit Post #282532 Post edited:
5 months ago
Comment Post #282532 @hkotsubo‭ I generally disagree ; I do agree that nesting is good and use it generally wherever I can but it doesn't do with the subjective and case-specific feeling when something is just over the top. Maybe I should clarify that I want to prevent a situation were it becomes 120 lines instead 80.
(more)
5 months ago
Comment Post #282532 For me too many blank lines is something and by principle I want to keep the HTML files small, up to 25 lines each, without too much nesting, maybe I should create a "multi page" form, instead the current "single page" one, but to be efficient it must include JavaScript, I guess (one backend page wit...
(more)
5 months ago
Comment Post #282532 Thanks, I use the PHP only for the routing (?) maybe routing is the right term. My PHP file has only one include for the $message variable which has a very large value ; the rest of the file is quite small and I think I want to keep it small and indeed seek an HTML-only solution.
(more)
5 months ago
Edit Post #282532 Post edited:
5 months ago
Edit Post #282532 Initial revision 5 months ago
Question Splitting a large HTML file into two or more HTML files without JavaScript
I am developing a modular HTML-PHP-CSS no-JavaScript (JavaScriptless) contact form and the HTML is becoming increasingly large, around 80 lines (and could easily grow to be significantly larger as to say 160 lines), many of which are currently very broad (due to many HTML attributes and nesting) and ...
(more)
5 months ago
Comment Post #282119 Read the edit summary.
(more)
5 months ago
Edit Post #282525 Post edited:
5 months ago
Edit Post #282525 Post edited:
5 months ago
Edit Post #282119 Post edited:
5 months ago
Edit Post #282525 Post edited:
5 months ago
Edit Post #282525 Initial revision 5 months ago
Question What are the types of contact forms?
I get the impression that there are two general types of contact forms: 1. A regular contact form where all fields are in one webpage ; such form might be very long for a potential customer ("too many" fields) 1. A "contact system" where a user fills at least two pages, each one with one or more ...
(more)
5 months ago
Comment Post #282344 Hello elgonzo. By "minimum character allowance" I meant to limit the field to start from a minimum number of characters, to prevent textarea messages with the text such as "a" or "x" --- if the field isn't totally empty or if it's not but there won't be enough characters, the form won't be submitt...
(more)
6 months ago
Edit Post #282344 Post edited:
6 months ago
Edit Post #282344 Initial revision 6 months ago
Question Accessibility standard/s for multilined <input type="text"> fields
I have a simple HTML contact form and I wish to create a text area in it with `` but without a `` tag. The end product should be an `` field which by the help of CSS, be styled pretty much with the same default style of a `` element. Are there any accessibility standards (such as minimum height...
(more)
6 months ago
Comment Post #282119 @elgonzo, the text should be in the right and circles should be in the left.
(more)
6 months ago
Edit Post #282119 Initial revision 6 months ago
Question An HTML form in Hebrew is Right to Left in general but a select list inside it is Left to Right
My HTML form got `dir="rtl"` attribute and value and in desktop computer systems it appears Right to Left (RTL) but in my mobile device (OnePLus 6) with Android and DuckDuckGo browser, the form's HTML select list is not flipped Right to Left so the Hebrew is Left to Right, oddly. Relevant parts of...
(more)
6 months ago
Edit Post #282085 Initial revision 6 months ago
Question Can Drupal be used to develop native (non web) applications?
I have used Drupal since 2010 to create websites and I recall a few years back reading that it can be used to create smartphone applications (or something similar). Is this only the "web-integrated part" of such applications or the applications themselves and if its the applications themselves how...
(more)
6 months ago
Comment Post #282025 Thanks, that seems to me what I needed.
(more)
6 months ago
Edit Post #282023 Post edited:
6 months ago
Edit Post #282023 Post edited:
6 months ago
Edit Post #282023 Initial revision 6 months ago
Question Modern CSS for splitting form sections into columns
I have a mobile-only HTML contact form divided in source code into three sections; each section should contain fields by a different context. ```html contactus ...
(more)
6 months ago
Edit Post #281880 Post edited:
I later understood that these rules should be on top, right after the rewrite engine on coomand.
6 months ago
Edit Post #281926 Post edited:
6 months ago
Edit Post #281926 Post edited:
7 months ago
Edit Post #281926 Initial revision 7 months ago
Question Is the concept of a PHP lint feasible?
When I review JavaScript files in various text editors (Visual Studio Code, Greasemonkey/Tampermonkey) I sometimes get notified about syntax errors. I never encountered this behavior with PHP files even if I installed, say, a PHP debugging extension in Visual Studio Code. Is the concept of a PH...
(more)
7 months ago
Edit Post #281880 Initial revision 7 months ago
Question Shared hosting Apache PCRE .htaccess file for personal MediaWiki websites
A shared hosting based Apache PCRE `publichtml/.htaccess` file for a website with the common features: 1. MediaWiki based (most of the website interaction is backendish --- there barely are any frontend behaviors anywhere) 1. Unlike most MediaWiki websites, doesn't have a url directory such as ex...
(more)
7 months ago
Comment Post #281418 @EJIP the claim that data compression in general, is generally not lossy --- is very interesting for me ; it is an elegant argument and intuitively correct. Maybe you'd have anything to elaborate more on that specific argument.
(more)
7 months ago
Edit Post #281817 Post edited:
7 months ago
Edit Post #281817 Post edited:
7 months ago
Edit Post #281817 Initial revision 7 months ago
Question Why content delivery networks often require a www. redirect?
Why do Content Delivery Networks are often developed in such a way that they would require adding a Cname value such as `www.` before `example.com`? I ask this after switching from one CDN (Cloudflare) to another (Namecheap) and coming across the same pattern of the need to add `www.` before the d...
(more)
7 months ago
Edit Post #281808 Post edited:
7 months ago
Edit Post #281808 Post edited:
7 months ago
Edit Post #281808 Initial revision 7 months ago
Question Did functional programming predated Object oriented programming or rather the opposite?
By "functional" I don't mean "procedural" (i.e. I don't mean to programming which is done solely or primarily with these data structures commonly known as "functions" but are actually procedures), rather, I mean "functional" by basic (mathematical?) programming meaning.
(more)
7 months ago
Comment Post #281762 Thanks @Alexei.
(more)
7 months ago
Comment Post #281762 @hkotsubo‭ I don't think I am --- a user not providing enough details is another issue which can be solved by creating good forms ; and yet, to prevent cognitive biases in processing the data --- I do believe formatting can help.
(more)
7 months ago
Comment Post #281769 About the question pointed to me --- it has to do with the determinism I personally have recognized in your answer (in Hebrew I would say "פסקנות" / "קבענות") ; about the mere saying about ticketing/documentation, that's an entire debate, I guess...
(more)
7 months ago
Comment Post #281769 My explanation is that from my 12 years experience with various hosting companies (some were quite crappy at the time), problems can be complicated and miscommunications can be not less problematic ; order and clarity are important and I don't know of any better tool than Markdown to achieve that in ...
(more)
7 months ago
Edit Post #281762 Initial revision 7 months ago
Question Why most hosting providers support ticket systems allow text only (no formatting)?
Through the years I have "tasted" several website hosting companies; none of them had Markdown available in their support-ticket-systems (if all any formatting method available). Why is it? What's so problematic for hosting providers to let their customers comfortably format their support tickets ...
(more)
7 months ago
Edit Post #281663 Post edited:
7 months ago
Edit Post #281663 Post edited:
7 months ago
Edit Post #281663 Post edited:
7 months ago
Edit Post #281663 Post edited:
7 months ago
Edit Post #281663 Post edited:
7 months ago
Edit Post #281663 Initial revision 7 months ago
Question When is information schema not needed and when is it indeed when migrating from one website hosting provider to another?
In some situations, could it be problematic to migrate a website's database (MySQL) from one website hosting provider to another without the information schema or with the information schema? In my personal experience with either I never experienced any problem although I didn't do many such migra...
(more)
7 months ago
Edit Post #281517 Post edited:
7 months ago
Comment Post #281517 I recall I have tried to check that article but I as a non native English speaker have trouble reading such long articles and even such long opener chapters on a topic I don't know anything about... This is exactly why I asked about an example focally as sometimes the best learning experience is with...
(more)
8 months ago
Edit Post #281517 Post edited:
8 months ago
Edit Post #281517 Initial revision 8 months ago
Question What is an example for a URI which is not a URL?
Every URL is a URI but not every URI is a URL is a saying I know from long ago, but what is an example for a URI which is not a URL (whatever the user agent would be - a web browser, a nix utility such as `curl` and so forth)?
(more)
8 months ago
Edit Post #281511 Post edited:
8 months ago
Comment Post #281511 Anyway, I have tried to edit the question to focus it more on standards and trying to understand the current development trend.
(more)
8 months ago
Edit Post #281511 Post edited:
8 months ago
Comment Post #281511 I mainly try to understand if cookies as we know them are obligatory for keeping a user account logged in to a website and that if there is a movement / trend to separate cookies from passwords (in a way similar to the one I have described).
(more)
8 months ago
Edit Post #281511 Post edited:
8 months ago
Edit Post #281511 Initial revision 8 months ago
Question Separation of password cookies from all other types of cookies
When I clear my Google Chrome browser history I can clear both "Cookies and other site data" AND "passwords and other sign-in data". Clearing just one of the two would require me to re-login to any website I already had a logged in account on. It is interesting to note that in Microsoft Edge ...
(more)
8 months ago
Edit Post #281484 Post edited:
8 months ago
Edit Post #281484 Post edited:
8 months ago
Edit Post #281485 Post edited:
This person is not a friend of mine... Minor edit.
8 months ago
Suggested Edit Post #281485 Suggested edit:
This person is not a friend of mine... Minor edit.
(more)
helpful 8 months ago
Comment Post #281484 @meriton I think where I have read that is irrelevant and is an expose of personal data which I shouldn't do by principle. I thank you and Alexei for trying to help; I should try revise the question.
(more)
8 months ago
Edit Post #281484 Post edited:
8 months ago
Edit Post #281484 Post edited:
8 months ago
Edit Post #281484 Initial revision 8 months ago
Question What is a typeless programming language?
I have read that several programming languages, listed below are considered "typeless": Forth Brainfuck B MUMPS BLISS Lucid BCPL I have shared this data with a programmer who clued that such languages don't lack a type, rather, they lack a type system; They do have one type which ...
(more)
8 months ago
Edit Post #281418 Post edited:
8 months ago
Comment Post #281434 And please notify me in person of any "blatantly off-topic questions" because I have asked many questions on the network and the vast majority of them were well received.
(more)
8 months ago
Comment Post #281434 @Lundin, in a broad enough definition it is indeed a topic in the software development of the virtual physics / virtual realities of 3D FPS games and might have a standardized term, so I disagree that it's not about software development. That said; I shouldn't ask any more questions about game develo...
(more)
8 months ago
Comment Post #281385 And BTW, I feel as if with a bit of edit what you wrote can actually be a good answer.
(more)
8 months ago
Comment Post #281385 @EJP --- ill-formed ; just can't be answered ; or can include only answers which are primarily opinion based? About `competently written piece of software` I agree.
(more)
8 months ago
Comment Post #281434 @Lundin, you know very well that games are software, so I truly misunderstand why you consider this not about software development. Furthermore, I opine that personal general messages should be sent in person, and with examples.
(more)
8 months ago
Edit Post #281434 Initial revision 8 months ago
Question When an FPS game player can look down on the character shehe plays
I seek help in finding a term common in game development, particularly 3D First Person Shooter games (not at all in 2.5D games such as Doom). I understand that 3D first person shooter games can be divided into two kinds: Those in which looking down from the character could show the clothes-cov...
(more)
8 months ago
Edit Post #281385 Post edited:
8 months ago
Comment Post #281418 Given the down vote I would have tried to edit to improve the question based on any constructive comment (although it was already heavily quoted so perhaps I shouldn't try to do so).
(more)
8 months ago
Suggested Edit Post #281422 Suggested edit:
Subjectivity. Removal of textual emoji.
(more)
declined 8 months ago
Edit Post #281418 Initial revision 8 months ago
Question Why often times data compression causes data loss?
I understand data compression as making data structures nearer (if they are mere machine code without any abstract representation) or representing them in less and less abstract computer languages (from the "complicated" to the "simple"). If so; Why often times data compression causes data loss? ...
(more)
8 months ago
Edit Post #281385 Post edited:
8 months ago
Edit Post #281385 Post edited:
8 months ago
Edit Post #281385 Post edited:
8 months ago
Edit Post #281385 Initial revision 8 months ago
Question What makes a software module an "authentication" module?
As I don't have any significant experience with internationally-standard information security literature, I would like to ask here if some international information security organization took the initiative to standardize the terms "authentication" in general and authentication modules in particular ...
(more)
8 months ago
Edit Post #281365 Post edited:
8 months ago
Edit Post #281365 Initial revision 8 months ago
Question Which body supervises country-specific internet associations and what designations it assigned to these?
I am trying to save my question that was deleted from "Webmasters StackExchange" for not being about "a problem in a website" which I published there anonymously ; below is a shortened, directly-into-the-point rephrasing of the question. I don't know about a worldly internet association, but I...
(more)
8 months ago
Edit Post #281317 Initial revision 8 months ago
Question Is *nix a formal term?
How can one differentiate what is or is not a nix operating system even if that operating system (or its core/shell/common-utilities) allegedly behaves like any "other" nix operating system? Is nix a formal term (and if so what are its borders)?
(more)
8 months ago
Comment Post #281309 Sadly the email client automatically changes everything to yyyy-mm-dd format... If I could control the (PHP?) of my email client --- Roundcube, I guess that then it would surly help...
(more)
8 months ago
Edit Post #281302 Initial revision 8 months ago
Question Backendly redirecting a user from a contact form webpage to a success webpage
On a CentOS Apache-MySQL-PHP environment I have a website with a simple HTML-PHP-CSS contact form; the contact form itself is working. This is how I backendly redirect a user from the contact form webpage to a success message webpage after a successful submission, based on the built-in W3C-develop...
(more)
8 months ago
Comment Post #281288 @Peter Taylor, I meant that by the help of PHP, I create an HTML output from the HTML form. PHP processes my HTML form (after the client have filled in details and submitted it) and gives me / prints for me an HTML output as a new message in my local email client (Roundcube). While the client fills i...
(more)
8 months ago
Comment Post #281293 I deliberately avoid sharing the rest of the form's code; HTML, CSS, Shell (Bash) because the purpose of this post is to focus only on the PHP. BTW, there is no JavaScript involved, pretty much on purpose.
(more)
8 months ago
Edit Post #281293 Initial revision 8 months ago
Question PHP for simple HTML-PHP-CSS contact form --- aimed solely for RTL websites
As a non PHP programmer I have tried to program some basic PHP `mail()` function code to send Right To Left (RTL) contact form messages to my local email client (i.e. an email client which is affiliated with the same web domain of my website hosting machine). The code does its task; contact form R...
(more)
8 months ago
Comment Post #281288 I am used to (European?) assortment of dates as with smallest to biggest and also most of my customers... I also think that smallest to biggest is the correct way to go from my personal experience as a teacher (always when I studied math it helped me).
(more)
8 months ago
Comment Post #281288 Hello @hkotsubo, I don't understand why this ISO standard developers wanted to started from the end :) Also, sadly I almost don't have control about the backend of the email client and use it pretty much "out of box".
(more)
8 months ago
Edit Post #281288 Post edited:
8 months ago
Edit Post #281288 Initial revision 8 months ago
Question yyyy/mm/dd instead expected dd/mm/yyyy format in PHP-created-HTML output
I have an HTML-PHP-CSS contact form with a date field: The default value in this field is the W3C built-in default: `dd/mm/yyyy` The date-picking pattern in this field is the W3C built-in default `dd/mm/yyyy` My problem Everything was allegedly fine until I printed this HTML as ou...
(more)
8 months ago
Edit Post #281214 Initial revision 8 months ago
Question Not obligating http:// or https:// in a url field of a contact form
I have a simple HTML-PHP-CSS contact form (no JavaScript) with an `input type="url"` field. Currently in 30/03/2021, the default behavior of `input type="url"` (by W3C design I guess) is to obligate the user to add `http://` or `https://` before its URL (which is most likely be just a domain such ...
(more)
8 months ago
Comment Post #281202 I admit I tried to read the answer several times, yet still didn't figure out what I should do.
(more)
8 months ago
Comment Post #281202 I already use the code in the same webpage I send data from (i.e. `const url = window.location.href`). In MediaWiki can be done with *raw HTML mode enabled* so people can paste their HTML and JS directly in the same page they work on, which is my case, the same webpage from which I do a previous AJAX...
(more)
8 months ago
Comment Post #281202 Thanks; I don't use jQuery at all (perhaps I should update the question to indicate).
(more)
8 months ago
Comment Post #281199 Hello, it's a code I found on the web and slightly modified; I don't know why it was written `contactForm.method`. I should carefully read your answer to try to figure out how to send my data correctly (which I assume, should indeed be sent by POST method).
(more)
8 months ago
Edit Post #281199 Initial revision 8 months ago
Question Submitting a form via XHR/AJAX causes partial data arrival to email inbox (only HTML without input)
I have a simple HTML-PHP contact form with some CSS. I desire to prevent the default behavior of the form which leads the user into a blank PHP page after submission, and, to have the form being submitted via XHR instead backendly. With the following code, I have managed to party achieve what I...
(more)
8 months ago
Comment Post #281196 Your help is appreciated, I took an heredoc approach. I would gladly publish how I have implemented it for the form (giving credit to you, of course).
(more)
9 months ago
Comment Post #281193 Yes, according to the answer by luap42 and your comment I went in that direction and it worked ! Thanks,
(more)
9 months ago
Comment Post #281193 @Art_Of_Code, my message isn't formatted correctly, the source code should indicate the RTLness in both `Current output` and `Desired output`.
(more)
9 months ago
Edit Post #281193 Initial revision 9 months ago
Question PHP variables aren't expanded when inside HTML which is by itself inside PHP
I transfer emails from my Right To Left (RTL) contact form → to my local email box (powered by Roundcube). Emails reach my email box (inbox) just fine but I have a problem were PHP variables aren't expanded inside the string of the `$message` variable so I get the literal variables instead their v...
(more)
9 months ago
Comment Post #281182 [Some nice data here](https://www.sitepoint.com/community/t/is-no-javascript-contact-form-an-accessibility-problem/366097).
(more)
9 months ago
Edit Post #281182 Post edited:
9 months ago
Edit Post #281182 Post edited:
9 months ago
Edit Post #281182 Post edited:
9 months ago
Edit Post #281182 Post edited:
9 months ago
Edit Post #281182 Post edited:
9 months ago
Edit Post #281182 Initial revision 9 months ago
Question Are JavaScriptless forms accessible?
I consider to make my website's contact form totally javascriptless (only HTML-PHP-CSS --- no JavaScript at all). No modals or alerts No prevent default No AJAX/AJAX/XHR/JHR No form disappearance and replacement with a success message in the same page (rather, a user would be redirected to ...
(more)
9 months ago
Edit Post #281170 Post edited:
9 months ago
Comment Post #281180 Thank you Alexei, about your last suggestion about `plain text vs. HTML` ; did you mean to an header such as `header("Content-Type: text/html; charset=UTF-8");`?
(more)
9 months ago
Edit Post #281170 Post edited:
9 months ago
Edit Post #281170 Post edited:
9 months ago
Edit Post #281034 Post edited:
9 months ago
Comment Post #281171 As someone who generally doesn't work with PHP I already read in that manual page and didn't figure anything like "The *message* is always, and only, a string"; perhaps figuring it requires some specific background knowledge in programming that until reading the essential part of your answer I lacked...
(more)
9 months ago
Edit Post #281170 Post edited:
Since I have published English translation (which also didn't work in-testing) this is no longer relevant
9 months ago
Edit Post #281170 Initial revision 9 months ago
Question PHP emails are sent when $message is a string, but not when its an array
I host my website on a CentOS-Bash, PHP and MySQL environment; my local email client is engined by Roundcube. I don't know almost anything about PHP nuances. While my web domain registration is done by one company, my DNS records hosting, websites hosting and website emails hosting are all done by...
(more)
9 months ago
Edit Post #281163 Initial revision 9 months ago
Question Is migrating emails from one hosting provider to another a trouble?
I rent a shared-hosting environment with CentOS-Bash, Apache, PHP, MySQL and a web-based IMAP email client (Roundcube) and some more tools, on which I host my personal website; I don't have Cpanel there, rather the browser / graphical user interface and some of its tools are all developed by the hos...
(more)
9 months ago
Comment Post #281158 This is why I contemplate hosting my emails on an address sufficed by the domain registrar --- but then, alleged-spam filtering might be just as harsh as it is in Baidu, Hotmail, Gmail, Yandex, and alike, won't it?...
(more)
9 months ago
Comment Post #281158 I always prefer to have a domain registrar and an hosting company different; it makes migrations, if needed from whatever reason, easier. If I understand you correctly you support the idea of hosting the emails on a separate database (not the website's database) **but also on the hosting company's en...
(more)
9 months ago
Edit Post #281158 Post edited:
9 months ago
Edit Post #281158 Post edited:
9 months ago
Edit Post #281158 Post edited:
9 months ago
Comment Post #281158 `You did not mention, but is the destination an e-mail address on your domain registrar?` Currently the destination email is my own private Gmail account; I wonder if it should be an email box in the hosting environment or an email box in the domain registrar.
(more)
9 months ago
Comment Post #281158 Hello Alexei ! `I would go with "buying an email box from my domain registrar" because it seems to be the easiest + safest solution` why should it be easier and safer than using an email box of the hosting provider?
(more)
9 months ago
Edit Post #281158 Initial revision 9 months ago
Question I don't want to setup DKIM, SPF and to do SMTP authentication ; an hosting-provider-email-box solves this but what if I want a domain-registrar-email-box instead?
On a shared hosting (CentOS-Bash) I have a website with a backend (PHP) - frontend CMS-agnostic contact form. I need to transfer emails sent via this contact form directly to an email address (I don't save anything in my website's database). I don't want to setup DKIM, SPF and to do SMTP authen...
(more)
9 months ago
Edit Post #281155 Initial revision 9 months ago
Question Is there a problem in making Captcha an HTML builtin with an attribute setting which type of Captcha
Many web login and contact form features could be set as standard HTML builtins without the need to develop and backend and/or (non HTML) frontend for them, for example: Select field Input Date field Input Time field In that StackExchange post I understood from one of the commenters that C...
(more)
9 months ago
Edit Post #281140 Post edited:
9 months ago
Comment Post #281081 @dmckee I do, I originally meant to scripts from my own GitHub accounts; I am far from knowing a lot on shell security / command validation :)
(more)
9 months ago
Comment Post #281095 Hello Peter, I have suggested an edit but maybe it wasn't saved or rejected? I don't have any notification and can't find any history. Please tell me if you rejected the edit... I have just tried to make the answer in line with my original intention (to write `DESTINATION` instead `$HOME`) and with m...
(more)
9 months ago
Edit Post #281140 Initial revision 9 months ago
Answer A: Dye all label asterisks Red with vanilla JavaScript
While there might be some JavaScript "magic-like" solution I don't know of, my own solution was making the HTML a tiny bit more complex and adjusting the CSS to the change. I have inserted my label tags into span tags and also created respective-successive span tags which contain only an asterisk ...
(more)
9 months ago
Edit Post #281139 Initial revision 9 months ago
Question Dye all label asterisks Red with vanilla JavaScript
I want to dye all label asterisks Red with vanilla JavaScript. CSS isn't good for this because it would dye both asterisks and colons (`:`) instead just the asterisks: ```css .labelWithColonAndAsterisk:after { content:":"; color:red; } ``` So, I need a (vanilla) JavaScript solu...
(more)
9 months ago
Edit Post #281081 Post edited:
9 months ago
Suggested Edit Post #281095 Suggested edit:
I suggest the edit based on my mistake as explained in a comment. I should change in the question to DESTINATION as well.
(more)
declined 9 months ago
Comment Post #281095 Thank you Peter, about ${HOME} it was a mistake, I should have written DESTINATION or something like that. Thanks again,
(more)
9 months ago
Edit Post #281081 Post edited:
9 months ago
Edit Post #281090 Initial revision 9 months ago
Question min-height for HTML form's submit buttons from a web accessibility standpoint
I am styling a simple HTML-PHP-CSS contact form and I have considered to give some `min-height` pixel value CSS style to the form's submit button. I ran a Google search with the query: > min-height submit button accessibility None of the 10 articles in the first place dealt with this directl...
(more)
9 months ago
Edit Post #281081 Post edited:
9 months ago
Edit Post #281081 Post edited:
9 months ago
Edit Post #281081 Post edited:
9 months ago
Edit Post #281081 Initial revision 9 months ago
Question Running remote scripts (cloud scripts) locally --- valid and securely as possible
I use CentOS with Bash and I would like to download, execute and delete the executed downloaded file (running a remote/cloud script locally). I often prefer to load my own shell scripts from my own GitHub account. I will normally do it for small shell scripts not exceeding approximately 25 code li...
(more)
9 months ago
Comment Post #281049 @wiktor.stribizew‭ hello, I misunderstand the last part of your comment; I very much agree that `sed` is used (or should be used) for simple match and replace operations as you have described but because I didn't mention POSIX regex at all in my question I can say that my original goal here was to ma...
(more)
9 months ago
Comment Post #281057 Oh, finally something which works for me easily, thanks a lot ; I have tested `echo $web_application_root` *before* `web_application_root="$(envsubst <<< "$web_application_root")"` and *after* . Before I got a string and after I got a `ROOT_DIRECTORY_NAME/the_rest`, as expected.
(more)
9 months ago
Comment Post #281055 Hello! `Q1`: I don't know :) `Q2`: I don't understand why IFS isn't on by default for `read` and to be honest I am not even sure I understand what it does. `Q3`: I am not sure I understand but probably there isn't more. `Q4`: `web_application_root="${HOME}"` is nice but I want to prompt the user for ...
(more)
9 months ago
Edit Post #281055 Initial revision 9 months ago
Question How to prompt a user for an expanded variable in Bash?
I work with CentOS operating system and my only shell is Bash. I want to create a script which prompts a user with a question like "What is your web application root?" The user should answer directly in terminal and the answer would be stored in a variable named `webapplicationroot`. I assume ...
(more)
9 months ago
Edit Post #281049 Post edited:
9 months ago
Edit Post #281049 Post edited:
9 months ago
Edit Post #281049 Post edited:
9 months ago
Edit Post #281049 Post edited:
9 months ago
Edit Post #281049 Initial revision 9 months ago
Question How to match standard email addresses with regex?
I want to match standard email syntax (lowercased English, numbers and perhaps also some hyphens and underscores) with regex for a `sed` operation that matches and changes a single email address inside a file. The following code failed: read newemailaddress sed -i 's/[a-zA-Z0-9-]@[a-zA...
(more)
9 months ago
Edit Post #281043 Post edited:
9 months ago
Comment Post #281043 Hello @Alexei. My infrastructure is PaaS by a well known hosting company (SiteGround) and I never had any problem sending mail through them with WordPress/Drupal/MediaWiki websites through the years. I also don't have anything in my Spam folder in Gmail.
(more)
9 months ago
Edit Post #281043 Initial revision 9 months ago
Question Creating a Right-To-Left, primarily-backend, HTML-PHP contact form
I host my website on a PaaS-modeled, shared hosting environment by SiteGround which is quite a well known hosting company with (as I believe) well-venerated email servers. I am trying to create an RTL-first primarily backend HTML-PHP contact form. If I use the following code I can submit th...
(more)
9 months ago
Edit Post #281034 Initial revision 9 months ago
Question What are field separators in operating-programming languages (such as Bash)?
The concept of field separator has some private cases in different operating system shells and their utilities (IFS on Bourne shell and derivates, RS on AWK and perhaps more) but I am having trouble understanding what is the purpose of the concept in general or which problem it was first aimed to sol...
(more)
9 months ago
Comment Post #281025 Perhaps "contact form as a service"?
(more)
9 months ago
Edit Post #281025 Post edited:
9 months ago
Edit Post #281025 Initial revision 9 months ago
Question I need a term to search for contact form Software as a Service (SaaS) provider
There is this service for website owners which is a both an email server (Backend as a Service) and a comfortable GUI for creating contact forms (Frontend as a Service). Website owners who don't want to start dealing with Email DNS records in their infrastructures and with contact form add-on modu...
(more)
9 months ago
Comment Post #280937 Principally yes, I have two or more CMSs for different website each. `are just looking for one form that you can develop and plug in for use everywhere? If you are in PHP it is close-to-trivial to roll-your-own` that's one option, yes (but I don't know how to start to implement it or if the second op...
(more)
9 months ago
Edit Post #280937 Post edited:
9 months ago
Edit Post #280937 Initial revision 9 months ago
Question What solutions available for a CMS-agnostic contact form?
By principle, I normally work with two different companies for establishing websites for myself: One for domain registration and domain-sole email address One for web application hosting My problem I have the problem that I don't want to use any contact form plugin/module/extension dedica...
(more)
9 months ago
Comment Post #278197 @elgonzo, I think your comment should be an answer ; you might even want to sum some of it as "every hook is a code injection but not every code injection is a hook".
(more)
about 1 year ago
Edit Post #278197 Post edited:
about 1 year ago
Edit Post #278197 Post edited:
about 1 year ago
Edit Post #278197 Initial revision about 1 year ago
Question What is the difference between a hook and a code injection?
I would define a hook as: > A piece of code which changes the response to a certain event, without changing the original code that caused the event How is that different than "code injection", if at all? AFAIK, both terms are quite common in software development.
(more)
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Post edited:
about 1 year ago
Edit Post #278031 Initial revision about 1 year ago
Question Is concatenation a logical AND?
As a person with no significant background in mathematics and computer science I thought that concatenation and AND are logically identical if not very similar because both add something to something yet not by numerical addition (natural addition) so I found it sensical to say "x AND y" is weight to...
(more)
about 1 year ago
Comment Post #277962 Thank you Lundin (I couldn't tag your profile with `@`) but I prefer to avoid the SE community; by that way I opine that a Codidact "Webmastering" in which both "web" questions and "server" questions are encouraged can be nice and quite practical.
(more)
about 1 year ago
Comment Post #277962 Yes, I had the feeling an exception would not be made and I totally respect that; I think that currently it has no place in Codidact; I don't want to post it in StackExchange though, perhaps Wikipedia computing refdesk or SitePoint or another website.
(more)
over 1 year ago
Edit Post #277962 Post edited:
over 1 year ago
Edit Post #277962 Initial revision over 1 year ago
Question How do World Wide Web interactions happen in a general level?
I understand that any World Wide Web interaction works this way: Stage 1: Client (human or software) ⟶ User agent ⟶ HTTP/S web-server request (with an unresolved domain) Stage 2: ISP-initiated Routing software ⟶ DNS server (one, or two or more until resolve) ⟶ DNS resolve Stage 3: A web Serve...
(more)
over 1 year ago
Edit Post #277310 Post edited:
over 1 year ago
Edit Post #277310 Initial revision over 1 year ago
Question What is a standard definition (or a CS theory based formal definition) for Escaping?
I personally would define "escaping" in software development in general and coding in particular as follows: > Making an exception to match data which otherwise would not be allowed to be matched: > >If a program is generally not allowed to match some character/s, such as single and/or double ...
(more)
over 1 year ago