you are making 2 calls to call.php
first has post variables:
xhr.send("amount=" + transferTotal + "&name=" + name);
second does not:
window.open('https://mydomain.com/con.php', '_blank');
you are making 2 calls to call.php
first has post variables:
xhr.send("amount=" + transferTotal + "&name=" + name);
second does not:
window.open('https://mydomain.com/con.php', '_blank');
$_SESSION gets set by session_start()
before that is empty
So:
<?php
session_start();
header("Content-Type: application/json");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Origin: null");
if (isset($_SESSION))
{
$_SESSION["time"] = time();
if (isset($_SESSION["time"])) echo json_encode("Session exists:" .$_SESSION["time"]);
}
else
{
echo json_encode("Session does not exist!");
}
code ?
please show your code
remove the style="display:none;"
from
<ul id="playlist1" style="display:none;">
<?=$output?>
</ul>
the deprecated object google.maps.MarkerImage only defines the image.
(the also an example on the same page what to use now)
if (isset($_POST['chkNumberck'])) $returnArray=$_POST['chkNumberck'];
else $chkNumberck= array();
$count=5;
echo"<form action='test.php' method='post'>";
for ($sub_id=0 ;$sub_id < $count;$sub_id+=1)
{
echo "<input type='checkbox' name='chkNumberck[]' value=$sub_id ";
if (in_array($sub_id,$chkNumberck)) echo"checked='checked'";>
}
echo "<input type='submit' /></form>";
2e part:
$output ="";
while($record = mysqli_fetch_assoc($query_confirm)) {
$output .= "<tr>";
$output .= "<td>" . $record["p_date"] . "</td>";
$output .= "<td>" . $record["p_day"] . "</td>";
$output .= "<td>" . $record["timein"] . "</td>";
$output .= "<td>" . $record["timeout"] . "</td>";
$output .= "<td>" . "06:25:22" . "</td>";
$output .= "<td>" . $record["p_date"] . "</td>";
$output .= "</tr>";
}
return $output;
not sure about the 1st part.
Are $dateval1 eand $dateval2 in the proper format?
how is p_date defined? date? dateTime?
also:
echo "<td><a id='more' href='http://www.niloofar3D.ir' onClick='return popup(this, \"mypopup\")'><button>»</button></a></td>";
is this what you want:
$sql = "SELECT * FROM misscall WHERE did_no = ". $didno;
or did I not understand your question?
silly question:
Are you actually using a Apache server?
maybe if you tell what isn't working
according to the manual: operators precedence
it has an 'Undefined order of evaluation'
and may 'change between versions of PHP or depending on the surrounding code'
html line 9
<input type="submit" name="y" value="submit my data" />
Your submit-button is called 'y' not submit
either change that line or your php_handler.php line 3:
if (isset($_POST['y'])){
something is wrong at around line 228
if (isset($_POST['type'])) {
if ($_POST['type'] == "login")
}
change to
if (isset($_POST['type'])) {
if ($_POST['type'] == "login") {
// do something
// like displaying your login form
}
}
Your database login and password are showing
Change them now!!
$id =$_POST['user_id'];
At line 12 $path and $img are not known yet, you declare them later.
So move the php part (line 14 -41) to the top of your script
it must be $d= $_GET["d"];
not $d= $GET["d"];
make sure your browser points to http://localhost/yourfile.php
and NOT file://c:/wamp/htdocs/yourfile.php
<?php
session_start();
must be the at the very top of youre script.
no html before it, not even a white-line;
for actual error message:
if just you run session1.php, $_POST will be empty.
test: var_dump($_POST);
the $_POST is filled bij the form only after you submit it
but action="session2.php"
will redect to session2.php
so in session2.php $_POST['text'] will have the value input in the form.
So no need for $_SESSION.
have you tryed:if (isset($_POST['submit'])) {
should it be :$mail->Port = 465; //port secure ssl email
do you get any error messages?
problably just a past error line 2:<?phpforeach($row as $b):?>
must be<?php foreach($row as $b):?>
but where is the endforeach;
if(!empty($stu_fname) &&
!empty($stu_lname) &&
!empty($stu_email) &&
!empty($stu_telp) &&
!empty($stu_skype) ) {
to cover the basics:
make sure $_GET["clientid"]
is not empty
add: else echo "no clientid";
Why do you want to do this.
To protect your server from mysql-injection?
Than it's not save to rely upon javascript.
Data can be sent directly to your server bypassing all your code.
Javascript validation is only used to create a faster error message.
It's the job of the server-site script (php) to make sure the data is save.
edit: nevermind
You never execute the update query
$s="UPDATE finance SET credit ='" . $r. "' WHERE payee = 'rw'";
$res = mysql_query($s) or die(mysql_error());
e.currentTarget.html() should work
html() retuns the html inside of the <div> not the <div> itself
if(isset( $_GET['Product_id'])) $product = $_GET['Product_id'];
else echo " no product id";
I didn't give you the solution because you already know it.isset()
will test test if a var exists without giving an error.
Simular as you do on line 1.empty()
whill test if i has a value that is not FALSE
combining the 2:
if( isset($row['PageId']) && !empty($row['PageId']) )
{
$val=$row['PageId'];
}
else
{
$val='';
}
That just turns off any error message below E_PARSE level.
It doesnot solve the error.
if $_GET['Id'] (line 1) is not set, $row['PageId'] (line 27) will no exist
JSONReader()
is not part of php
Why do you want to know?
Or do you want to know the connection speed?
You have to pay zenatdesign.com $40 to be able to use that software.
Gess they are happy to answer your questions.
in your function you use loginsell
but your form is called loginform