Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #18171

Re: How to link from html form an external php file login?

Path csiph.com!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: How to link from html form an external php file login?
Date Sat, 4 Jan 2020 18:02:53 +0100
Lines 34
Message-ID <h7buptFnr4gU1@mid.individual.net> (permalink)
References <quqbnf$kj9$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net 1oxCgZfAd+uGLc4CuWEXUARUC8flbIUDMwe91f8phPYEa9l2De
Cancel-Lock sha1:tDiUgoTy4iV/dUJOr5z35N0QeFc=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1
In-Reply-To <quqbnf$kj9$1@gioia.aioe.org>
Content-Language en-US-large
Xref csiph.com comp.lang.php:18171

Show key headers only | View raw


On 04/01/2020 16.41, ^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 :\

Then use other ways to communicate, for example you can use ajax, so the 
login form calls your login.php file, the login.php responses with a 
status of the login attempt and your javascript will display the error 
message or redirect to the next page if the login was correct.

-- 

  //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web