Access php files through a link on the web

前端 未结 3 613
栀梦
栀梦 2021-01-26 15:52

I have created a very simple html page. Below is the code of the html file


    
        Client Login
    <         


        
3条回答
  •  我在风中等你
    2021-01-26 16:34

    In short: NO you can not achieve what you'd like to do in the way you suggested. First off, you'd need to own said domain and have hosting for it.

    How to:

    1. Purchase a domain name from a domain registrar (Google search)
    2. Purchase hosting for said domain (optionally with the domain registrar)
    3. Upload files to your hosting.
    4. Access your file through your domain (whatever it may be). For example http://www.myderpydomain.com

    That way you can now run your file (for this example we shall call it index.html)

    
        
            Client Login
        
        
            
    Don't have an account? Please register

    and now as you can see, your form action is set to Sign_up.php. You need this file to process your form, which I pressume you will write up. But here's a "placeholder" script in the mean time.

    
    

    NOTE

    I just noticed you have a form to link to your sign-up page. Why not use an (ANCHOR) element which was designed for this kind of thing.

    Sign Up Now
    

提交回复
热议问题