Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18169 > unrolled thread
| Started by | ^Bart <gabriele1NOSPAM@hotmail.com> |
|---|---|
| First post | 2020-01-04 16:41 +0100 |
| Last post | 2020-01-26 20:17 -0800 |
| Articles | 4 on this page of 24 — 9 participants |
Back to article view | Back to comp.lang.php
How to link from html form an external php file login? ^Bart <gabriele1NOSPAM@hotmail.com> - 2020-01-04 16:41 +0100
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-04 12:02 -0500
Re: How to link from html form an external php file login? ^Bart <gabriele1NOSPAM@hotmail.com> - 2020-01-11 13:14 +0100
Re: How to link from html form an external php file login? Tim Streater <timstreater@greenbee.net> - 2020-01-11 12:48 +0000
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-11 10:45 -0500
Re: How to link from html form an external php file login? rcpj@panix.com (Pierre Jelenc) - 2020-01-11 22:23 +0000
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-11 18:14 -0500
Re: How to link from html form an external php file login? rcpj@panix.com (Pierre Jelenc) - 2020-01-12 00:26 +0000
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-11 23:10 -0500
Re: How to link from html form an external php file login? rcpj@panix.com (Pierre Jelenc) - 2020-01-12 21:21 +0000
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-12 22:07 -0500
Re: How to link from html form an external php file login? rcpj@panix.com (Pierre Jelenc) - 2020-01-14 22:07 +0000
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-15 10:40 -0500
Re: How to link from html form an external php file login? Arno Welzel <usenet@arnowelzel.de> - 2020-01-15 20:20 +0100
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-11 23:13 -0500
Re: How to link from html form an external php file login? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-01-11 11:52 -0500
Re: How to link from html form an external php file login? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-01-11 11:54 -0500
Re: How to link from html form an external php file login? ^Bart <gabriele1NOSPAM@hotmail.com> - 2020-01-12 00:45 +0100
Re: How to link from html form an external php file login? Jerry Stuckle <jstucklex@attglobal.net> - 2020-01-11 23:16 -0500
Re: How to link from html form an external php file login? "J.O. Aho" <user@example.net> - 2020-01-04 18:02 +0100
Re: How to link from html form an external php file login? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-04 17:03 +0000
Re: How to link from html form an external php file login? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-01-11 11:04 -0500
Re: How to link from html form an external php file login? Arno Welzel <usenet@arnowelzel.de> - 2020-01-11 18:52 +0100
Re: How to link from html form an external php file login? kristjanman2k20@gmail.com - 2020-01-26 20:17 -0800
Page 2 of 2 — ← Prev page 1 [2]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2020-01-04 17:03 +0000 |
| Message-ID | <871rsfnohk.fsf@bsb.me.uk> |
| In reply to | #18169 |
^Bart <gabriele1NOSPAM@hotmail.com> writes: > Hi guys, > > I have this code in my html page: > > <body> > <div id="login"> > <form method="post" action="" name="login"> > <div class="topnav" align="center"> > <input type="text" name="usernameEmail" autocomplete="off" placeholder="Email or Username"/> > <input type="password" name="password" autocomplete="off" placeholder="Password"/> > <input type="submit" class="button" name="loginSubmit" value="Login"> > <a href="#register">Sign Up</a> > <div class="errorMsg"><?php echo $errorMsgLogin; ?></div> > </form> > </div> > </body> > > Now I have also php code above in the same file You mean, I think, some more PHP code that you have not shown us because there is some in the text you posted! > but I'd like to save php code in an external file named for example > login.php but I don't understand what I should add in the html form to > link it to the php's file :\ PHP code is often "included" or "required" like this: <?php include 'login.php' ?> (read the documentation for include and require first, please). However, this may not be what you are talking about at all, and I have a feeling you are heading at full speed towards implementing another unsafe login mechanism. What's the motivation here? Is this a college exercise? -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | Lew Pitcher <lew.pitcher@digitalfreehold.ca> |
|---|---|
| Date | 2020-01-11 11:04 -0500 |
| Message-ID | <qvcrmf$d2q$1@dont-email.me> |
| In reply to | #18169 |
^Bart wrote: > Hi guys, > > I have this code in my html page: > > <body> > <div id="login"> > <form method="post" action="" name="login"> > <div class="topnav" align="center"> > <input type="text" name="usernameEmail" autocomplete="off" > placeholder="Email or Username"/> > <input type="password" name="password" autocomplete="off" > placeholder="Password"/> > <input type="submit" class="button" name="loginSubmit" value="Login"> > <a href="#register">Sign Up</a> > <div class="errorMsg"><?php echo $errorMsgLogin; ?></div> > </form> > </div> > </body> > > Now I have also php code above in the same file but I'd like to save php > code in an external file named for example login.php but I don't > understand what I should add in the html form to link it to the php's > file :\ Put your php into another file (say "login.php") accessable as a URL, then change <form method="post" action="" name="login"> to <form method="post" action="login.php" name="login"> which will direct the form's POST to the "login.php" URL -- Lew Pitcher "In Skills, We Trust"
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-11 18:52 +0100 |
| Message-ID | <h7ugbjFk8d3U1@mid.individual.net> |
| In reply to | #18169 |
^Bart: > I have this code in my html page: > > <body> > <div id="login"> > <form method="post" action="" name="login"> [...] > Now I have also php code above in the same file but I'd like to save php > code in an external file named for example login.php but I don't > understand what I should add in the html form to link it to the php's > file :\ I advise you to first learn the basics of HTML, PHP and how web servers work before you try to create anything which is available to the public. -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | kristjanman2k20@gmail.com |
|---|---|
| Date | 2020-01-26 20:17 -0800 |
| Message-ID | <798b101f-d07a-496c-861f-6e567cb36b3b@googlegroups.com> |
| In reply to | #18169 |
laupäev, 4. jaanuar 2020 17:41.40 UTC+2 kirjutas ^Bart: > Hi guys, > > I have this code in my html page: > > <body> > <div id="login"> > <form method="post" action="" name="login"> > <div class="topnav" align="center"> > <input type="text" name="usernameEmail" autocomplete="off" > placeholder="Email or Username"/> > <input type="password" name="password" autocomplete="off" > placeholder="Password"/> > <input type="submit" class="button" name="loginSubmit" value="Login"> > <a href="#register">Sign Up</a> > <div class="errorMsg"><?php echo $errorMsgLogin; ?></div> > </form> > </div> > </body> > > Now I have also php code above in the same file but I'd like to save php > code in an external file named for example login.php but I don't > understand what I should add in the html form to link it to the php's > file :\ > > Regards. > ^Bart Personally I think, you should have made a little bit research on this topic, before asking....This is the PHP worlds most simple problem in my opinion. With the best wishes, Kristjan Robam
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.php
csiph-web