HTML

57K

Solutions

30K

Contributors

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

Share tech news, updates, or what's on your mind.

Sign up to Post

We currently have a asp file with the following code:-

<%@ LANGUAGE=JSCRIPT %>
<%

// VARS TO CHANGE

var v1 = 12345;
var v2 = 12345678;
var targetFile = "mysecretpage.asp"

// END VARS TO CHANGE

var enterpriseName = targetFile.substr(0,targetFile.lastIndexOf("."));

function pad(num){
  return(num<10?"0"+num.toString():num.toString());
}

var now = new Date();

var key = pad(now.getUTCMinutes()) + pad(now.getUTCMonth()) + pad(now.getUTCDate()) + pad(now.getUTCHours());
key = (key * v1) - v2;

%>


<HTML><BODY onload="document.uptodate.submit();">

<form method="POST" action="http://uptodateonline.com/porthole/<%= targetFile %>" name="uptodate">
<input type="hidden" value="<%= enterpriseName %>" name="username">
<input type="hidden" value="<%= key %>" name="key">
<input type="submit" value="UpToDate">

</form>
</BODY></HTML>

Open in new window


I have amended the variables for security reasons.

I need to convert this code into a standard HTML file as server side scripting is disabled on our particular web server and we are unable to get it enabled.

My understanding is that this is simple Javascript so it should be possible to integrate this into a standard HTML page?

Any help would be appreciated as my experience with Javascript is minimal.
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

I have set the base target for the page, and I want to link within the page by doing

<a href="#sub-section">link</a>

but it keeps opening a new window, how do I override the base target for only a small number of links on the page?
0
Hello,

On this page:

www.idiaper.com

There's a "Shop by Categories" area.

How do I get the category buttons centered in desktop and mobile?

#categories-frontp
{
text-align:center;
}

.banner-frontp
{
padding: 0px 0px 15px 0px;
text-align:center;
max-width:935px;
height:auto;
}

.buttons-frontp
{
text-align:center;
max-width:935px;
height:auto;
}

.buttons-frontp img
{
padding: 11px 11px;
float:left;
max-width:182px;
height:auto;
}

Open in new window


<div id="categories-frontp">
 	<div class="banner-frontp"><img style="border:0px" alt="shop-by-category-home-page-title" src="/assets/images/shop-by-category-banner-frontp.gif"></div>
 		<div class="buttons-frontp">
 		<a href="http://www.idiaper.com/adult-pullups"><img style="border:0px" alt="pull ups button" src="/assets/images/adult-pull-ups-frontp.gif"></a>
		 <a href="http://www.idiaper.com/adult-diapers-with-tabs"><img style="border:0px" alt="adult diapers with tabs button" src="/assets/images/adult-diapers-with-tabs-frontp.gif"></a>
		 <a href="http://www.idiaper.com/adult-cloth-diapers"><img style="border:0px" alt="adult cloth diapers button" src="/assets/images/adult-cloth-diapers-frontp.gif"></a>
		 <a href="http://www.idiaper.com/mens-diapers"><img style="border:0px" alt="mens diapers button" src="/assets/images/mens-diapers-frontp.gif"></a>
		 <a href="http://www.idiaper.com/womens-diapers"><img style="border:0px" alt="womens diapers button" src="/assets/images/womens-diapers-frontp.gif"></a>
		 <a 

Open in new window

0
Hi, I got this Multitrack Player to work on Node.js on a Node hosting service heroku.com
https://github.com/squallooo/MT5
I also got it to work locally on my PC.

I have Wordpress hosting at Dreamhost.

Now I want to include the Multitrack Player into the Wordpress page.
I need some help with that.

For a start, how can I simply 'insert' the player into my WP page?

Thanks.
0
I want to fetch the data but while fetching the data i'm getting the whole data but i want only single employee details.
for example if employee id's are GI1006,Gi1007,GI1008 are in my database but i want only GI1008 so how can i chnage my code ??

<?php
 $dbhost = "localhost";
 $dbuser = "root";
 $dbpass = "Gemini@123";
 $db = "employee database";

    $conn = mysql_connect($dbhost, $dbuser, $dbpass,$db);

   if(! $conn ) {
      die('Could not connect: ' . mysql_error());
   }

   $sql = 'SELECT EmployeeID,FirstName,MiddleName,LastName,FatherName,SpouseName,MotherName,DOB,Age,BloodGroup,MaritalStatus,Gender,ContactNumber,EmergencyContactNumber,Email,DateOfJoiningatGemini,TotalYearOfExperience,ReleventYearOfExperience,PANnumber,PassportNumber,UANnumber,AadharNumber,PresentAddress,PermanentAddress
      FROM employee_inforamtion';

   mysql_select_db('employee database');
   $retval = mysql_query( $sql, $conn );
   if(! $retval ) {
      die('Could not get data: ' . mysql_error());
   }

   while($row = mysql_fetch_assoc($retval, MYSQL_ASSOC)){

   echo "<tr>";
   
   
      echo " <tr>";
      echo  "Employee ID :{$row['EmployeeID']}</br></br> ";
      echo "<tr>";
      echo  "First Name :{$row['FirstName']}</br></br> ";
      echo "<tr>";    
      echo  "Middle Name :{$row['MiddleName']}</br></br>";
      echo " <tr>";
      echo  "Last Name :{$row['LastName']}</br></br>";
      echo " <tr>";
      echo     "Father Name :{$row['FatherName']}</br></br>";
      

Open in new window

0
You'll need to log in to see this site, please use pepe and BobTheBuilder45!!

http://dev2.magickitchen.com/gift/gift-certificates.html  the gray footer is supposed to look like that.

http://dev2.magickitchen.com/diet/diabetic-meals.html
Whoa, what happened?

Can anyone point out what is making it look like this, please? Thanks!!
0
Who can explain what is happening:

Using the code like this it works fine,

<?php
if  (isset($_SESSION['id'])) {
echo $_SESSION['uid'];
} else { echo "<form action='signup.php'>
                         <button class=' button button1'>SIGN UP</button>
                        </form>";
                  }

Open in new window


Add tags to first echo out put and it crash error "the page isn't working".

example:

<?php
if  (isset($_SESSION['id'])) {
echo "<tag>$_SESSION['uid'];</tag>"
} else { echo "<form action='signup.php'>
                         <button class=' button button1'>SIGN UP</button>
                        </form>";
                  }

Open in new window


Any help is welcome
0
Can someone help me make this header and nav sticky on this site please http://www.fashionline.com.au/
I can't access the template files easily as its Genesis so there is no easy grouping of the header divs....its really tricky
I hope someone can help?
0
On this site here http://www.fashionline.com.au/
I would like the main navigation to stretch to the full width of the site.  Ideally having the black stretch the full width.
But I can't seem to isolate the correct css to achieve this.

If anyone knows how to make that sticky also and float to the top on scroll I would be greatful for help with that too?
Thank you
0
Hi experts, I'm having problem getting toFixed (Javascript). Please correct my code below. Thanks!

		var x = (this.responseText); 
		alert(x.toFixed(0));      
		alert(x.toFixed(2));        

Open in new window

0
WordPress Tutorial 4: Recommended Plugins
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Before submitting the page i need some alert at the password atleast one special cheracter message . How can i write the code.
<?php 

	include 'connect.php';
	include 'fun.php';
	
	$error = "";
	
	if(isset($_POST['savepass']))
	{
		$password = $_POST['password'];
		$confirmPassword = $_POST['passwordConfirm'];
		
		if(strlen($password) < 5)
		{
			$error = "Password must be greater than 5 characters";
		}
		else if($password !== $confirmPassword)
		{
			$error = "Password does not match";
		}
		else if (!preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $password))
		{
			$error = "Atleast one special character in the Password";
		}

		else
		{
			/*
			$password = password_hash($password,PASSWORD_DEFAULT);
			*/
			
			$emp_id = $_SESSION['emp_id'];
			if(mysqli_query($con, "UPDATE users SET password='$password' WHERE EmployeeID='$emp_id'"))
			{
				$error = "Password Changed Successfully, <a href='login2.php'>click here</a> to Log In";
			}
			
		}
	}
	
	
	if(logged_in())
	{
		
		
	?>
		
		<?php echo $error; ?>

Open in new window

0
Any good software that can analyze coding of websites offline?
0
I am using a jQuery tabs package (SolidTabs) to present several jQuery/BootStrap (BootGrid) Ajax forms on the same page. iframes are not an option. As its name implies, BootGrid displays a table of records, along with the ability to add a new record or edit an existing one, taking advantage of Ajax, using json and PHP.
I have not wanted to mess with the main js file. I'm thinking I should just be able to change the various HTML id's, and I should be fine. So far, that has not been successful.

My perhaps naive question is - other than using an iframe, is there some way of containing these separate grid forms so that I could use the same id assignments on the same page?
0
actualy i have created a popup.on the body part of browser i have disbled mouse click(right and left click) bt now i want , if i click on new window tab or browser cut buttion it should be disabled(both right click and left click).
i am using programming language html,css,javascript......can u plz give me the solution
0
I'm getting the errors message like Empid does not exists is at top of the layer but i want that message on lower.can any one modify my code
<?php

 include 'connect.php';
 include 'fun.php';


	/*
	if(logged_in())
	{
		header("location:profile.php");
		exit();
	}
	*/
	$error = "";

	if(isset($_POST['submit']))
	{
		$emp_id = mysqli_real_escape_string($con, $_POST['emp_id']);
	    
	    $password = mysqli_real_escape_string($con, $_POST['password']);
		
		 
		if(emp_exists($emp_id, $con))
		{
			$result = mysqli_query($con, "SELECT * FROM users WHERE EmployeeID='$emp_id' and password='$password'");
			$retrievepassword = mysqli_fetch_assoc($result);

			
			if($password!=$retrievepassword['password'])
			{
				$error = "Password is incorrect";
			}
			else
			{
				$_SESSION['emp_id'] = $emp_id;
				
				
				
				header("location: change.php");
			}
			
			
		}
		else
		{
			$error = "Employee Id Does not exists ";
		}
		
	
	}

?>



<!doctype html>

<html>

<head>
<style>
input[type=text],input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #45a049;
}
div {
    border-radius: 20px;

Open in new window

0
For DOB i neeed dd/mm/yyyy format i don't know how to write in date-util format  can anyone please leave me code for this and also its script function
Date of Birth   <input type="date" name="DOB" max="2030-31-12" required> 

Open in new window

0
Hi

Please check reference link

https://www.letzbank.com/ifsc-codes

I want to make same like search engine and proper url  Name, State ,City, Branch

reference url - https://www.letzbank.com/ifsc-codes/abhyudaya-cooperative-bank/gujarat/ahmedabad/ghatlodiya
0
i wrote  a code like this for DOB at the html page it is getting as mm/dd/yyyy but i want it as dd/mm/yyyy
Date of Birth   <input type="date" name="DOB" max="2030-31-12"> 

Open in new window

0
Hi experts, How to change the button caption of the file input. The default caption is "Choose file" I want to make it as "Get file". Any help please!

<input type="file" id="fileInput"/>
0
Secure Your WordPress Site: 5 Essential Approaches
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

I have an Excel document which was saved as a HTML file.  Unfortunately, when I try to open the file I get the error message, Missing file sheet001.html.  Using Excel 2010 or Excel 2016 I get the same error message.  I also tried the open and repair.  How can I repair and open.
0
Hi experts, I want to get the value of the check box. Please correct code below. Thank you!

<!DOCTYPE html>
<html>
<body>

  <input id="cb" type="checkbox" name="vehicle" value="Bike" checked> I have a bike<br>
  <button onclick="return Get()">Check now</button>
  
  <script>
  function Get()
  {
    var x = document.getElementById("cb").value;
    if (x.checked == true)
    {
      alert(x);
    }
    else
    {
      x = "No bike"
      alert(x);
    }
  }
  </script>

</body>
</html>

Open in new window

0
I am using code provided by Marco Gasi, and I made some modification to the php to give me 2 results. How can I post the two different results from the php file

<?php

$price = 7.99;

$qty = filter_input(INPUT_POST, "qty");

$total_price = 0;

$total_tax = 0;

if (isset($qty)){

      $shipping = $qty <= 4 ? 9.95 : 14.95;

      $total_price = ($price * $qty) + $shipping;

        $total_tax = $total_price * .0825;
}

echo $total_price;
echo $total_tax;

HTML :   (I want two separate results PRICE and TAX, and the way it is working right now is 1 string file with BOTH results)

<h3><font size="6">Total price is <span id="total-price">$ 15.98</span></font></h3>
                              <h3><font size="6">Taxes <span id="total-tax">$ 1.32</span></font></h3>
      </td>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"  integrity="sha256-JmvOoLtYsmqlsWxa7mDSLMwa6dZ9rrIdtrrVYRnDRH0="  crossorigin="anonymous"></script>
            <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
            <script type="text/javascript">
                  $(document).ready(function () {
                                //reset quantity value when page reloads
                        $('#qty').val(2);
                                // intercept 'change' event for the quantity input
                        $('#qty').on('change', function () {
                                        // get the value of the quantity input
                              var qty = $(this).val();
                                        //perform an Ajax call…
0
This is an experiment in a customized bootstrap 4 menu using a flex layout. The reason I'm going this route (or attempting to) is because I want a custom slide-in collapsed menu- not the standard bootstrap layout.

This approach works fine for the menu items except the dropdown element "work" doesn't toggle.  Any thoughts on why would be greatle appreciated.

HTML
 <header class="container-bleed">
        <div class="header-top">
          <nav class="navbar navbar-fixed-top navbar-custom">
              <div class="nav navbar-nav main-nav">
                <div class="nav-item active">
                  <a class="nav-link" href="./index.htm">Home <span class="sr-only">(current)</span></a>
                </div>
                <div class="nav-item">
                  <a class="nav-link" href="./about.htm">About</a>
                </div>
                <div class="nav-item">
                  <a class="nav-link" href="./approach.htm">Approach</a>
                </div>
                <div class="nav-item dropdown">
                  <a class="dropdown-toggle nav-link" href="#" id="work" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Work</a>
                  <div class="dropdown-menu" aria-labelledby="#work">
                    <a class="dropdown-item" href="./work1.htm">Work 1</a>
                    <a class="dropdown-item" href="./work2.htm">Work 2</a>
                    <a class="dropdown-item" href="./work3.htm">Work 

Open in new window

0
What am I doing wrongly in these code? I want to update user password without refreshing the page, but this is not working as my code stops at  
_("pmessage").innerHTML = 'please wait ...';

Open in new window

on the jquery/ajax code. The Ajax seems not to be firing as my DB is not updated with the new password. Below are my codes:

HTML
<form id='pform' method='post'>
<div id='entercurrent'>Enter Current Password:</div>
<input id='current' name='current' type='password'>
<div id='enternew'>Enter New Password:</div>
<input id='newpwd' name='newpwd' type='password'>
<div id='enterconfirm'>Confirm New Password:</div>
<input id='confirmpwd' name='confirmpwd' type='password'>
<input id='passsubmit' type='submit' value='Update Password'>
</form>
<div id='pmessage'></div>

Open in new window


Ajax
$(document).ready(function() {
    $("#passsubmit").click(function(event) {
        event.preventDefault();
        var cp = $("#current").val();
        var np = $("#newpwd").val();
        var cf = $("#confirmpwd").val();
        dataString = "cp=" + cp + "&np=" + np + "&cf=" + cf;
        _("passsubmit").style.display = "none";
        _("pmessage").innerHTML = 'please wait ...';

        $.ajax({
            type: "POST",
            url: "functions/changePwd.php",
            data: dataString,
            success: function() {}
        });
    });
});

Open in new window


PHP -  functions/changePwd.php
if(isset($_POST['cp'])) {
    $currentpwd = $_POST['cp'];
    $newpwd = password_hash($_POST['np'], PASSWORD_DEFAULT);
    $confirmnewpwd = password_hash($_POST['cf'], PASSWORD_DEFAULT);
}
$sql = "UPDATE users SET password='$newpwd' WHERE username='$log_username'";
$query = mysqli_query($db_connect, $sql);

Open in new window

0
oh men,
i need to move this logo to the bottom right of the page, im right there but cant move no more the logo

#footer div div  a {
	background: url(../images/poweredby.jpg) no-repeat;
	display: block;
    width: 150px;
	height: 50px;
   background-position-x:right;
   

Open in new window


please you guys
0

HTML

57K

Solutions

30K

Contributors

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.