Hi,
Because in form definition you use method = "post" but, in your code you fetch $idURL using $_GET.
Change $idURL = $_GET['id']; with $idURL = $_POST['id']; or the form attribute method with method = "get".

Hi,
Because you have some errors in your code:
1 <script language="JavaScript" type="text/javascript">
replace with <script type="text/javascript">

2 Function validate ()
replace with function validate()
Function isnt a keyword for javascript.

3 onsubmit=return "validate()"
replace with onsubmit="return validate()"

Here is a simple:

<style>
    .tableOuter
    {
        text-align: center;
    }

    .tableInner
    {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        background: blue;
    }

    #mytable
    {
        margin-left: auto;
        margin-right: auto;
        background-color: yellow;
    }
  </style>
  <body>
      <div class="tableOuter">
        <div class="tableInner">
            <table id="mytable">
            <tr>
                <th>Customer ID</th>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Phone</th>
                <th>Address</th>
            </tr>
            <tr>
                <td>xxx</td>
                <td>xxx</td>
                <td>xxxx</td>
                <td>xxxx</td>
                <td>xxxx</td>
            </tr>
            </table>
        </div>
      </div>
  </body>

Hi,
Try somthing like this:

<script type="text/javascript">
        function add(){
            var first = document.getElementById("form").value;
            //The values will be separated by comma
            var second = first.split(",");
            var third = second.join(" + ");
            var x = eval(third);
            document.one.answer.value = third+" = "+x;
        }
    </script>

Change only the script. The values in first fields will be write separated by comma.

Hi,
Try to workaround this code:

<?php

$json = file_get_contents("San_Francisco.json"); 
$array_json=json_decode($json, true); 
//print_r($array_json);

display_jsonarray($array_json);    

function display_jsonarray($array, $lvl_indent = 0)
{
    $indent = "";
    $istr = "    ";
    if($lvl_indent > 0)
    {
        $indent = str_repeat($istr,$lvl_indent);
    }      
    foreach ($array as $key => $value)
    {
        if(is_array($value))
        {
            echo $indent.$key.": \n<br/>";
            $lvl_indent = $lvl_indent + 4;
            display_jsonarray($value,$lvl_indent);
        }    
        else
        {
            echo $indent.$key.": ".$value."\n";
        }

    }
} 

?>

With the display_jsonarray function i try to display recursiv the array but identation is'nt ok.
But maybe this code help you.

Hi,
Move the white div after the fixed div, the fixed div become without content.
This worked for me:

<div id="content"> This is my page
       <div style="position:fixed; top:0px;left:0px; height:100%; width:100%; background:rgba(0, 0, 0, 0.8); ">
       </div>
       <div style="position: relative; top:150px;font-size:16px;background:white; height:auto; width:600px; margin:0 auto;padding-bottom:40px;">
                <div style="width:100%;text-align:right;font-size:40px;"><b>[x]</b></div>
                <img src="http://www.online-image-editor.com/styles/2013/images/example_image.png" />
</div>

</div>

Hi again,
This is work.

<!DOCTYPE HTML>
    <html>
    <head>
    <title>Untitled 1</title>
    <style>
    #content {
        width:1100px;
        border:4px solid black;
        background:green;
        margin:0 auto;
        height:2000px;
        font-size:100px;
        color:red;
        text-align:center;
    }
    </style>
    </head>
    <body>

    <div style="float:left; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.6); ">
        <div id="content"> This is my page </div>
    </div>
    </body>
    </html>

Hi,
Read the content of the file in a String

String text = "";
String line = "";
while ((line = in.readLine()) != null) 
{
        text += line;
}

After that split the string into array, and display first 2 character of each element:

for (String retval: text.split("-"))
{
         System.out.println(retval.substring(0,1));
}

This is correct statment:

SELECT gameID, gameName, MAX(gameStartDateTime) FROM `tbl_test`
GROUP BY gameID, gameName;

Hi,
emailid is declared in FB.api, in this case emailid isn't visible for $.ajax({....})
Declare emailid before FB.api and just set value for this variable in FB.api

var emailid = "";
 FB.api('/me', function(userInfo) {
    console.log(userInfo.email);
    emailid = userInfo.email;
    console.log(emailid);
})
$.ajax({
    url: 'index.php?r=tryon/saveemailid',
    type:'post',
    data:{'saveemail':emailid},
    success : function(data){
        alert("success!");
    }
});

Hi,
You can make a method for that:

public static void ColoredConsoleWrite(ConsoleColor color, string text)
{
    ConsoleColor originalColor = Console.ForegroundColor;
    Console.ForegroundColor = color;
    Console.Write(text);
    Console.ForegroundColor = originalColor;
}

and use like this

ColoredConsoleWrite(Yellow, "Name: ");
Console.WriteLine(studentName);
ColoredConsoleWrite(Yellow, "City: ");
Console.WriteLine(studentCity);

The initial foreground color is white.

Hi,
Try this, but change the urls with yours:

function BoxRedirect()
        {
            var b = document.getElementsByName("box");
            var len = b.length;
            for(var i = 0; i < len; i++)
            {
                if(b[i].checked)
                {
                    if(b[i].value == "001")
                    {
                        window.open("http://www.google.com","_blank");
                    }
                    if(b[i].value == "002")
                    {
                        window.open("http://www.yahoo.com","_blank");
                    }
                    if(b[i].value == "003")
                    {
                        window.open("http://localhost","_blank");
                    }
                    if(b[i].value == "004")
                    {
                        window.open("http://www.daniweb.com","_blank");
                    }    

                }
            }
        }
emortals commented: Hi albucurus. Thank you for your reply. I prefer not to specify the value in the javascript if possible. If you can imagine 100+ checkboxes, i dont want to have to update the javascript for each one. My apologies, I should have mentioned that in my origin +0

Hi,

First put in top of your program this line:

import java.util.Scanner; 

Second, replace your filling of array with this:

Scanner in = new Scanner(System.in);   // Construct a Scanner object 
for(int k = 0; k<20; k++)
{
    price[k] = in.nextDouble();
}

Put enctype="multipart/form-data" at your form definition:

<form class="form-horizontal form-separate" method="post" role="form" enctype="multipart/form-data">

Correction:

$result = mysql_query($queryGet);

Try this:

<?php
//You need this first
session_start();

if ($username && $password) 
{

    $queryGet = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password'");
//    $numRows = mysql_num_rows($queryGet); dont need this
    $result = mysql_query($sql);
    if ($result) 
    {
        while($row = mysql_fetch_array($result))
        {
            $_SESSION['username'] = $row['full_name'];    
        }  
    echo 'You have logged in correctly';
    }
}

?>

Hi,
Change this in your PHP code (line 6):

$uploaddir ='files/'.$_FILES['waec_scratch_card_file']['name'];

or

$uploaddir ='files/'.basename($_FILES['waec_scratch_card_file']['name']);