Aug 21, 2014 15:46
catch you later
Aug 21, 2014 15:45
thanks for all the help I will accept your answer on my question :) really appreciate it
Aug 21, 2014 15:45
man cant believe the trouble that caused me lol
Aug 21, 2014 15:45
lol
Aug 21, 2014 15:44
yes I have received the email
Aug 21, 2014 15:44
the missing semi colon was at the end of here

$status = 1;
Aug 21, 2014 15:44
I added it and removed the var_dump, uncommented the variable declerations and it works :)
Aug 21, 2014 15:44
colon*
Aug 21, 2014 15:44
there was a missing semi colonb
Aug 21, 2014 15:42
wait
Aug 21, 2014 15:42
oh
Aug 21, 2014 15:42
but line 6 is now

var_dump($_POST);die();
Aug 21, 2014 15:42
done, and refreshed and pressed the button again but still nothing. Same error pops up in console about line 6:

<b>Parse error</b>: syntax error, unexpected T_STRING in <b>/var/www/dev.lektronix.com/quick-contact.php</b> on line <b>6</b><br />
Aug 21, 2014 15:40
tells me its not getting to that PHP file
Aug 21, 2014 15:40
done but nothing else happens. Just get the same thing appear in the console
Aug 21, 2014 15:38
$name = mysql_escape_string(trim($_POST['name']));
Aug 21, 2014 15:38
lol
Aug 21, 2014 15:38
yeah
Aug 21, 2014 15:38
<b>Parse error</b>: syntax error, unexpected T_VARIABLE in <b>/var/www/dev.lektronix.com/quick-contact.php</b> on line <b>6</b><br />
Aug 21, 2014 15:37
but now I see them
Aug 21, 2014 15:37
yes sorry I got it now I didnt have "all" tab open
Aug 21, 2014 15:36
nothing
Aug 21, 2014 15:34
added the semi colon. But there isnt any other section underneath in the console
Aug 21, 2014 15:32
commented out "after the first mail();"
Aug 21, 2014 15:32
sorry
Aug 21, 2014 15:32
lol
Aug 21, 2014 15:31
im lost now, so my code now looks like:

$success = mail('***@***.com', $subject, $message1, $headers);
var_dump($success) after the first mail();
die();

i unclicked persist and the tabs under the console section are:

clear | persist | profile | all | errors | warnings | info | debug info | cookies
Aug 21, 2014 15:28
yes its being used in lots of places throughout the site
Aug 21, 2014 15:27
running on a web server
Aug 21, 2014 15:26
ok
Aug 21, 2014 15:25
ha yeah
Aug 21, 2014 15:25
so it doesnt no what to reset
Aug 21, 2014 15:25
we have removed the form tag which held the form name
Aug 21, 2014 15:25
ok removed the form tags and pressed button2. Alerts and then the page doesnt reload :)

pressed the first button and I get the success message, no page reload but no email comes through either and the console displays this message

TypeError: $(...)[0] is undefined

$('#quick_contact')[0].reset();
Aug 21, 2014 15:22
I will remove the form tags and try again
Aug 21, 2014 15:22
nothing in the console
Aug 21, 2014 15:22
is it because its in a form?
Aug 21, 2014 15:21
ok

<button name="button2" onClick="alert('new button')">Send2</button>

pressed that and the alert pops up and then the page reloads
Aug 21, 2014 15:19
still the same page reload
Aug 21, 2014 15:18
ok so it now reads this:

if($_POST){
$status = 1 // init to one, assume there will not be an error
//Store the entered values in the variables
$name = mysql_escape_string(trim($_POST['name']));
Aug 21, 2014 15:18
i know its got me stumped.
Aug 21, 2014 15:17
:/
Aug 21, 2014 15:17
done, page still reloads nothing happens
Aug 21, 2014 15:14
my code now looks like:

PHP:

if(isset($_POST) == true){
die('made it here');
$status = 1 // init to one, assume there will not be an error
//Store the entered values in the variables
$name = mysql_escape_string(trim($_POST['name']));
$email = mysql_escape_string(trim($_POST['email']));

HTML:

<button id="quick_submit" name="quick_submit" onclick="quickContact()">Send</button>
Aug 21, 2014 15:14
ok done that, the page reloads still. What should I see with that change?
Aug 21, 2014 15:11
tried running the script again though and still doesnt work. Page still reloads
Aug 21, 2014 15:10
ok, refreshed the page that error is gone
Aug 21, 2014 15:08
ok one second
Aug 21, 2014 15:07
bottom line is the one in the error
Aug 21, 2014 15:06
here is the code surrounding that line that appeard in the error:

/************************ NAVIGATION *************************************/
$('#cssmenu').prepend('<div id="indicatorContainer"><div id="pIndicator"><div id="cIndicator"></div></div></div>');
var activeElement = $('#cssmenu>ul>li:first');

$('#cssmenu>ul>li').each(function() {
if ($(this).hasClass('active')) {
activeElement = $(this);
}
});


var posLeft = activeElement.position().left;