Jump to content

Daniele80

New Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Daniele80's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks. I'm trying but it works only one time. You can try at this link. You can modify or say to me where's the error. http://www.contrel.it/demo/network.php Thanks
  2. Thanks. I don't want to hidden the input type, maybe disabled. Is it possible? below the "code" of my page: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Configuration EMA-ETH WEB</title> <style> body { font-family:Netto-Pro; margin: 0; padding: 0; box-sizing: border-box; } @font-face { font-family: Netto-Pro; src: url(netto_pro.otf); } header { background-color: #333; color: white; text-align: center; padding: 1em; } nav { background-color: #555; overflow: hidden; } nav a { float: left; display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } nav a:hover { background-color: #ddd; color: black; } section { padding: 20px; } form { max-width: 600px; margin: 0 auto; } label { display: block; margin-bottom: 8px; } input, select { width: 100%; padding: 10px; margin-bottom: 16px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } input[type="submit"] { background-color: #4CAF50; color: white; cursor: pointer; } input[type="submit"]:hover { background-color: #45a049; } </style> <SCRIPT LANGUAGE="JavaScript"> <!-- function EnableDisableTextBox(status) { } // End --> </script> </head> <body> <header> <h1>Configuration EMA-ETH WEB</h1> </header> <nav> <a href="#home">Home</a> <a href="#">Device Info</a> <a href="network.php">Network Settings</a> </nav> <section> <h2>Device Info</h2> <form name="f1" action="004_attivaIPFISSO.php" method="post"> DHCP <input type="checkbox" name=others onclick="EnableDisableTextBox(this.checked)" > <label for="ip">IP Address:</label> <input type="text" id="ip" name="ip" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required> <label for="sm">Subnet Mask:</label> <input type="text" id="sm" name="sm" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required> <label for="gw">Default Gateway:</label> <input type="text" id="dg" name="dg" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required> <label for="dns">DNS:</label> <input type="text" id="dns" name="dns" pattern="^((\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$" oninput="this.value = this.value.replace(/[^0-9.]+/g, '');" minlength="7" maxlength="15" required> <input type="submit" value="Save"> </form> </section> </body> </html>
  3. Thanks for all replies, guys. I think for you is a very easy issue. You can see in the attached pic, the selection about DHCP or static. Do you have a java script code that if I set DHCP mode disable all the network settings and viceversa? If I set Manual enable all the input type text. Sorry for my questions...I know could be very easy for you this kind of issue.
  4. I've to do this page very soon. I'm not a CSS expert. Usually program C. This is why I asked if there is an example of a responsive page with navigation bar and form with input type. Maybe if I can ask some users.
  5. requinix, thanks so much for your explanation and suggestions about side notes. Do you know where I can find some code examples? Thanks.
  6. Hi, I need to have a php page where it allows me to save the network parameters (with input text format check) and decide whether to use DHCP or fixed parameters. The page must be responsive with a minimum of graphics. I would add the actions to the POST forms. can someone help me? Thanks in advance page example....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.