Greg Wooledge writes:
On Mon, Oct 26, 2020 at 01:49:05PM +0000, Curt wrote: > On 2020-10-26, Greg Wooledge <wool...@eeg.ccf.org> wrote: > > On Mon, Oct 26, 2020 at 12:38:36PM +0100, Michael wrote: > >> he is talking about filling in forms, etc. that are part of the html email. > >> guys, ever heard of the <form>...</form> html tags? that's what he means. > > > > But what would the form's Submit action be? > > > <!DOCTYPE html> > <html> > <body> > > <h2>HTML Forms</h2> > > <form action="/action_page.php"> > <label for="fname">First name:</label><br> > <input type="text" id="fname" name="fname" value="John"><br> > <label for="lname">Last name:</label><br> > <input type="text" id="lname" name="lname" value="Doe"><br><br> > <input type="submit" value="Submit"> > </form> >> <p>If you click the "Submit" button, the form-data will be sent to a page > called "/action_page.php".</p>> > </body> > </html>Yes, this is exactly my point. If you've received this form from a WEB SERVER, then /action_page.php refers to a script on that same web server. Or the equivalent of a script. But if you're just reading this form in a FILE on your LOCAL MACHINE, which is what email is, then what is /action_page.php supposed to do?
In an e-mail form one would expect the `action` to point to an absolute URL. Consider this example (derived from above):
<!DOCTYPE html> <html> <head><title>Absolute URL form test</title></head> <body> <form action="https://www.google.com/search" method="GET"> <label for="q">Search Query:</label><br> <input type="text" id="q" name="q" value="Test"><br> <input type="submit" value="Submit"> </form> </body> </html>Works independently of where the file is stored and could thus also run inside an e-mail client.
HTH Linux-Fan ΓΆΓΆ
pgpeCNz8p4K3t.pgp
Description: PGP signature