...

View Full Version : Resolved PHP Session_Start()



BrianMartin&Co
04-21-2012, 02:03 AM
Hello All,

Firstly, thank you for taking the time to resolve my issue. The script was built to build up lead generation for my company. However I have come across a problem I haven't come across before.

if you go to bmandcoweb.co.uk/email.php the script works perfectly.

However when I try and intergrate this with other pages within my domain name. It doesn't work.

The Below Code
.co.uk/email.php

The blow code is simple. Once the user submits it's company name (username) and e-mail address an e-mail is sent with a download link. I still need to clean up how the e-mail is sent but this is irrelevant at the moment.


<?php
require('includes/init.php');

?>
<div align="center">
<h2 >Email Form</h2></div><br />
<div align="center" style="width: 600px; margin: 0 auto;">
<?php
if(isset($_POST['username'], $_POST['email'])){
$username = mysql_real_escape_string($_POST['username']);
$email = mysql_real_escape_string($_POST['email']);
$errors = array();
$get_dom = end(explode('@', $email));
if(empty($username)||empty($email)){
$errors[] = 'You must fill in both fields.';
} else {
if(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `companies` WHERE `username`='$username'"), 0) == 1){
$errors[] = 'That username already exists.';
}
if(filter_var($email, FILTER_VALIDATE_EMAIL) === false){
$errors[] = 'E-mail address is not valid.';
}

}
if(!empty($errors)){
foreach($errors as $error){
echo '<font size="+1" color="#FF0000">'.$error.'</font><br />';
}
} else {

mysql_query("INSERT INTO `companies` (`id`,`username`,`email`) VALUES ('','$username','$email');");
$body = 'Welcome, '.$email.'!

This e-mail is to verify that your deatails are correct and to download our executive summary document.

<a href="pdf/executive-summary.pdf.pdf">Download Ececutive Sumary</a>
<br />
Your Company Name is: '.$username.'
';
mail($email, 'You have submitted your details', $body, 'From: brian@bmandco.co.uk');
print('Details Submitted!');
}
}

?>
<form action="" method="post">
<p>Company Name:<br /><input type="text" name="username" maxlength="35" /></p>
<p>E-Mail Address::<br /><input type="text" name="email" maxlength="255" /></p>
<p><input type="submit" value="Submit Details" /></p>
</form>
</div>


The Blow Code
includes/init.php
The database and passwords are included as normal.

<?php
ob_start();
session_start();
mysql_connect('localhost', 'database','password');
mysql_select_db('database');
require('functions/codes.func.php');
require('functions/wsite.func.php');

require('functions/users.func.php');
if($_SERVER['PHP_SELF'] == '/account/edit.php'){
$profile_emotes_show = '<script src="/javascript/emotes.js" type="text/javascript"></script>
';} elseif($_SERVER['PHP_SELF'] == '/account/upload-vid.php' || $_SERVER['PHP_SELF'] == '/account/upload-music.php' || $_SERVER['PHP_SELF'] == '/account/upload-img.php' || $_SERVER['PHP_SELF'] == '/account/upload-work.php') {
$show_upload_emotes = '<script src="/javascript/upload_emotes.js" type="text/javascript"></script>
';} elseif($_SERVER['PHP_SELF'] == '/account/profile.php') {
$profile_show = '<script src="/javascript/sho_emo.js" type="text/javascript"></script>
';} elseif($_SERVER['PHP_SELF'] == '/admin/edit-upload.php') {
$edit_upload = '<script src="/javascript/upload_emotes.js" type="text/javascript"></script>
';}
?>

if you go to the bmandcoweb.co.uk website you'll find that it's claiming it can't work because of

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bmandco/public_html/index.php:36) in /home/bmandco/public_html/includes/init.php on line 3

however it works perfectly in .co.uk/email.php

Please shed some light on this :) - Please

Brian

tangoforce
04-21-2012, 02:14 AM
Brian,

For some reason the error message says the error has occurred in index.php yet you've chosen to show us email.php which you openly admit works without a problem.

How do you expect us to advise you on what is wrong and how to fix index.php if you're not going to show us the code? Why are you showing us the code for email.php which you say works and has no problems?

All is not lost however. If you don't want to show us the code for index.php (which you've made quite clear by not posting it despite knowing its at fault) then I have a handy TIP in my signature which explains this error and how to deal with it. I would recommend you read it as it may help you to resolve your problem yourself.

ShaneC
04-21-2012, 02:14 AM
You'll want to go ahead and switch the following lines in init.php.

Change:



ob_start();
session_start();


to



session_start();
ob_start();


For more detail on this area, see this article (http://phpsense.com/2006/php-sessions-errors/).

And thank you for the politeness! :) Always appreciated.

tangoforce
04-21-2012, 02:18 AM
@ShaneC: No, if init.php works fine with email.php and NOT for index.php then the order of those two lines will make no difference (I had initially thought the same thing). The problem here is that (as the message says) the headers have already been sent because output has already been sent to the browser in index.php somewhere.

Even in the article it quite clearly shows that you can do this:




//Start buffering the output
ob_start();

print("Some text");

//Since the output is now buffered, the above statement will not cause any error
session_start();

ShaneC
04-21-2012, 02:20 AM
@ShaneC: No, if init.php works fine with email.php and NOT for index.php then the order of those two lines will make no difference (I had initially thought the same thing). The problem here is that (as the message says) the headers have already been sent because output has already been sent to the browser in index.php somewhere.

And yet if output buffering is enabled content won't be sent to the browser until flush or termination.

I will concede that, after looking at the error again, the problem may well be in the index.php file (I erroneously assumed it was in init). I would still recommend the original poster make the modification I suggested, however, to alleviate future confusion.

tangoforce
04-21-2012, 02:23 AM
I've already looked at the article and it clearly shows the opposite of what you've actually said about those two lines. Note that output buffering is started inside init.php - not inside index.php as far as we know.

The point is that Brian has clearly stated that the init.php file works fine with another file but not for the file that claims its already sent its headers. If init.php works fine elsewhere then it's nothing to do with the order of those two lines.

BrianMartin&Co
04-21-2012, 02:26 AM
Hey thanks for those tips. The swaping line session and line ob_start(); didn't work :(

However; I didn't want to post the entire index.php as I'm using functions, the problem occurs on every page so what makes index.php different to say seo-services.php ect


Brian

ShaneC
04-21-2012, 02:28 AM
Hey thanks for those tips. The swaping line session and line ob_start(); didn't work :(

However; I didn't want to post the entire index.php as I'm using functions, the problem occurs on every page so what makes index.php different to say seo-services.php ect


Brian

And yet we really need to see that page in order to help you, especially if your functions are what's causing the problem.

If you don't want it publicly posted, feel free to PM it to me. Otherwise, please post at the very least lines 30 to 40 of index.php.

tangoforce
04-21-2012, 02:32 AM
Hey thanks for those tips. The swaping line session and line ob_start(); didn't work :(

No it won't because as I've said, you have output starting in your other pages before your inclusion of init.php. It works in email.php because it's included straight away.


However; I didn't want to post the entire index.php as I'm using functions, the problem occurs on every page so what makes index.php different to say seo-services.php ect

Functions or no functions, you're going to have to show something codewise. I've already said that line swapping wouldn't resolve this so you have two options:
1) Post code
2) Read the tip in my signature, modify your pages to use output buffering at the top of the code rather than inside init.php.

BrianMartin&Co
04-21-2012, 02:35 AM
Hey,

I have PM'd you both.

Again, thank you for your time and patients.

Brian

tangoforce
04-21-2012, 02:38 AM
I have PM'd you both.


Nope, you've not PM'd me so despite being able to see the fault from the first reply I made, you've chosen to ignore my help and advice and instead go with ShaneC's who was wrong (I presume because he's a Mod you thought he'd be a better bet?) :eek: :confused: :rolleyes:

Well, not much I can say to that is there other than good luck - I will assist no more.

BrianMartin&Co
04-21-2012, 02:41 AM
I did try that and it didn't work. Perhaps I've done something wrong.

tangoforce
04-21-2012, 02:45 AM
Two minutes after my post you decide to PM me...

The cause is immediately obvious:

The first line in your index.php page is html code - OUTPUT THAT TRIGGERS YOUR HEADERS. Didn't you read the tip in my signature?

The very first thing you should have at the top of the file is this:
<?php require('includes/init.php'); ?>

It should look like this:


<?php require('includes/init.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

BrianMartin&Co
04-21-2012, 02:51 AM
That was one of the things I done first in the early stages of attempting to solve my issue. and yes although it takes the error messages away from the website. the script now doesn't work.

It wont send the e-mail.

ShaneC
04-21-2012, 02:51 AM
Well now that the file has been posted, and tangoforce and I have both told the original poster the same advice, it's probably best to converge back here.

The original poster specified via PM that adding <?php require('includes/init.php'); ?> to the top of the file does not fix the error. OP: Please double check that when you add that line to the top of index.php that you also remove it from wherever it is currently called.

If that still doesn't fix your problem, it may be helpful to see the contents of <?php include("functions/container.php");?>, which is referenced in the PHP error.

BrianMartin&Co
04-21-2012, 02:54 AM
<div id="container">
<div id="header"> <img src="images/bmandco-web.png" alt="BM&amp;Co Web" border="0" class="logo"/>
<ul id="toplinks">
<li><a href="http://www.facebook.com/bmandcoweb" rel"nofollow"><br />
<img src="images/facebook.png" alt="Facebook" width="48" height="48" border="0" /></a><a href="http://www.twitter.com/bmandcoweb" rel"nofollow"><img src="images/twitter.png" alt="Twitter" width="48" height="48" border="0" /></a><a href="https://plus.google.com/b/104457182888881491090/104457182888881491090/posts" rel="nofollow"><img src="images/google_plus.png" alt="Google+" width="48" height="48" border="0" /></a><a href="http://www.linkedin.com/in/blinkbrian" rel="nofollow"><img src="images/linkedin.png" alt="LinkedIn" width="48" height="48" border="0" /></a><a href="http://bmandcoweb.tumblr.com" rel"nofollow"><img src="images/tumblr.png" alt="Tumblr" width="48" height="48" border="0" /></a><a href="http://www.stumbleupon.com/stumbler/bmandcoweb" rel="nofollow"><img src="images/stumbleupon.png" alt="StumbleUpon" width="48" height="48" border="0" /></a><!-- Place this tag where you want the badge to render --><a href="http://www.digg.com/bmandcoweb" rel="nofollow"><img src="images/digg.png" alt="Digg" width="48" height="48" border="0" /></a><a href="http://delicious.com/bmandcoweb" rel="nofollow"><img src="images/_0033_Delicious.png" alt="Delicious" width="48" height="48" border="0" /></a></li>
</ul>
</div>

that is the container. When attempting to solve my issue. I placed the ?php require('includes/init.php'); ?> at the top.

However now the website is currently at the stage where ?php require('includes/init.php'); ?> is at the top of the entire source code and it doesn't send the e-mail just makes the error disappear.

tangoforce
04-21-2012, 02:55 AM
Brian,

Go through your files and change this:
require('includes/init.php');

To this:
require_once('includes/init.php');

If that doesn't work, you'll need to restructure your code.

BrianMartin&Co
04-21-2012, 02:56 AM
okay may have to restructure my code.

ShaneC
04-21-2012, 02:59 AM
So the e-mail has disappeared, if I understand you correctly. Does anything else appear on the page? Is the only problem in that the e-mail no longer sends?

BrianMartin&Co
04-21-2012, 03:00 AM
It doesn't record the details. Least if the e-mail and company name was recorded. I could just send the e-mail myself as I'm at a PC 20 hours a day I can just set up another screen to monitor it during 9 - 5 hours.

Brian.

tangoforce
04-21-2012, 03:03 AM
However now the website is currently at the stage where ?php require('includes/init.php'); ?> is at the top of the entire source code and it doesn't send the e-mail just makes the error disappear.

Lets just clarify something...

index.php no longer shows any errors correct? index.php also does not send any email correct?

So, email.php is the file that is now not working correct? In that case, email.php is at fault NOT the other files. You just need to debug email.php to see whats going on.

ShaneC
04-21-2012, 03:04 AM
Do me a favor, in your init file please add this to the very top:



error_reporting( E_ALL );


And report back any errors you get.

Keep in mind that you'll need to keep init.php included via your e-mail page, despite what we're working on with your index page.

BrianMartin&Co
04-21-2012, 03:10 AM
Lets just clarify something...

index.php no longer shows any errors correct? index.php also does not send any email correct?

This is correct yes.


So, email.php is the file that is now not working correct? In that case, email.php is at fault NOT the other files. You just need to debug email.php to see whats going on.

email.php continues to work perfectly.


Do me a favor, in your init file please add this to the very top:



error_reporting( E_ALL );


And report back any errors you get.

Keep in mind that you'll need to keep init.php included via your e-mail page, despite what we're working on with your index page.

Just give me 2 minutes.

BrianMartin&Co
04-21-2012, 03:13 AM
Do me a favor, in your init file please add this to the very top:



error_reporting( E_ALL );


And report back any errors you get.

Keep in mind that you'll need to keep init.php included via your e-mail page, despite what we're working on with your index page.


Okay email.php continues to work perfectly.

index.php doesn't give any information out with regards to errors.

tangoforce
04-21-2012, 03:15 AM
This is correct yes.



email.php continues to work perfectly.


Short and vague again..

So where is the email problem then? - You said in your earlier post that the email isn't being sent. index.php doesn't sent one, email.php does but is working ok, so which file is at fault?

I get the impression for some reason that you don't want me to assist (and I've had that impression from the early posts in page 1) so I'm going to leave you and Shane to deal with this now as you only ever give me vague details.

ShaneC
04-21-2012, 03:16 AM
Great! So am I now correct in assuming that all your problems are resolved?

If yes: Yay! Congrats on a working site.

If no: Yay! More errors to fix. Please post which specific portions you're having a problem with.

Also, if `yes` then it's wise to remove that line I asked you to add. That's a good tool for debugging purposes to see all the errors, but it's bad practice to expose your errors to users ;).

BrianMartin&Co
04-21-2012, 03:22 AM
Yes the e-mails are now working everything is working. You actually don't know how grateful I am!!

So let me just recap at the moment as to where it went right.

So what have I actually changed since I came on this forum.

I took the advice and added

<?php require ('include/init.php');?>

to the beginning of index.php which I'll have to include on all pages across the website.

I then added error_reporting( E_ALL);

and adding that seems to have made everything work. I'm going to reverse everything one step at a time just to confirm.

However I can now receive an e-mail through index.php once I fill in the company name and e-mail address which is the result I wanted.

THANK YOU :D

ShaneC
04-21-2012, 03:24 AM
Our pleasure! Let me know if anything others problems seem to crop up.

Also, quick note: Removing error_reporting() shouldn't cause anything to break. That's simply a diagnostic tool for you to control which errors are displayed. More info here! (http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting)

BrianMartin&Co
04-21-2012, 03:31 AM
Our pleasure! Let me know if anything others problems seem to crop up.

Also, quick note: Removing error_reporting() shouldn't cause anything to break. That's simply a diagnostic tool for you to control which errors are displayed. More info here! (http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting)

well this is rather embarrassing... I may had got confused between what I was doing... Therefore the problem isn't solved. Oh lord!

ShaneC
04-21-2012, 03:36 AM
Haha it's not a problem, we'll just take it one step at a time.

Go back for me and try sending your e-mails using your site, go between the different pages, basically give everything a once over.

Once that's done, report back with a list of all the errors/functionality problems you're encountering. Please try to be as detailed as possible! We'll go from there :).

BrianMartin&Co
04-21-2012, 03:44 AM
Okay Okay. Nice and slowly (for my sanity it's 02:30 in the morning here)

I'm working with two .php files.

.co.uk/email.php
.co.uk/index.php

index.php


<?php require('includes/init.php'); ?>

At the top of the index.php file.

email.php

Seems to be working perfectly.


<?php
require('includes/init.php');

?>
<div align="center">
<h2 >Email Form</h2></div><br />
<div align="center" style="width: 600px; margin: 0 auto;">
<?php
if(isset($_POST['username'], $_POST['email'])){
$username = mysql_real_escape_string($_POST['username']);
$email = mysql_real_escape_string($_POST['email']);
$errors = array();
$get_dom = end(explode('@', $email));
if(empty($username)||empty($email)){
$errors[] = 'You must fill in both fields.';
} else {
if(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `companies` WHERE `username`='$username'"), 0) == 1){
$errors[] = 'That username already exists.';
}
if(filter_var($email, FILTER_VALIDATE_EMAIL) === false){
$errors[] = 'E-mail address is not valid.';
}

}
if(!empty($errors)){
foreach($errors as $error){
echo '<font size="+1" color="#FF0000">'.$error.'</font><br />';
}
} else {

mysql_query("INSERT INTO `companies` (`id`,`username`,`email`) VALUES ('','$username','$email');");
$body = 'Welcome, '.$email.'!

This e-mail is to verify that your deatails are correct and to download our executive summary document.

<a href="pdf/executive-summary.pdf.pdf">Download Ececutive Sumary</a>
<br />
Your Company Name is: '.$username.'
';
mail($email, 'You have submitted your details', $body, 'From: brian@bmandco.co.uk');
print('Details Submitted!');
}
}

?>
<form action="" method="post">
<p>Company Name:<br /><input type="text" name="username" maxlength="35" /></p>
<p>E-Mail Address::<br /><input type="text" name="email" maxlength="255" /></p>
<p><input type="submit" value="Submit Details" /></p>
</form>
</div>




Now I'm using a system...

I've submitted a download request company name: 002 e-mail: brian at bmandco. ect via index.php

and company name: 003 with same e-mail via brian at bmandco ect

I'm now starting to think there is a slight delay... no wait there is I just received an e-mail from 003 which would suggest that email.php is working fine...

Index.php continues to be the pain.

ShaneC
04-21-2012, 03:49 AM
Okay, I think the miscommunication is I'm not understanding what the problem with index.php is. What specifically is it doing (or what error is it showing) that is causing you to think there may be a problem?

BrianMartin&Co
04-21-2012, 03:55 AM
Okay, I think the miscommunication is I'm not understanding what the problem with index.php is. What specifically is it doing (or what error is it showing) that is causing you to think there may be a problem?

Oh right of course.

Okay.

So with everything in place at the moment. If you go to the index.php page and request a brochure download. One would type in their company name, e-mail address and press enter.

However, no e-mail arrives, no errors are on screen and no information is caught. UNLIKE email.php where once you press enter "details submitted" is displayed. details are caught and POW e-mail is sent like clock work.

I think this covers it.

ShaneC
04-21-2012, 04:00 AM
On your index.php your e-mail information isn't actually being sent anywhere:

This is your e-mail form tag on your index.php page:


<form method="Post" action="">


That means it's going to try to submit to index.php for processing, but you don't actually have any of that processing within index.php.

Try changing your form to this:


<form method="post" action="email.php">

BrianMartin&Co
04-21-2012, 04:05 AM
I've tried that before. It redirects to email.php and even when I take the form out of email.php it still hasn't worked.

As well as this, email.php works with the form how it is. I am going to cry in a moment :(

ShaneC
04-21-2012, 04:08 AM
Redirecting to e-mail.php is actually a good thing.

See here's what's happening:

You've information on your index.php page. A user fills it out and presses submit. Your current form action submits the information to index.php.

index.php receives this information but doesn't have any code to process it. All of your processing code is in email.php, which isn't included on index.php.

So, what I'm suggesting is for right now you allow it to do that redirect. If it sends the e-mail, you're in business. At that point we'll simply remove the HTML from email.php, and then require( '...email.php' ) after require( '...init.php' ).

BrianMartin&Co
04-21-2012, 04:08 AM
adjusting the email.php so it looks like this;


<?php
if(isset($_POST['username'], $_POST['email'])){
$username = mysql_real_escape_string($_POST['username']);
$email = mysql_real_escape_string($_POST['email']);
$errors = array();
$get_dom = end(explode('@', $email));
if(empty($username)||empty($email)){
$errors[] = 'You must fill in both fields.';
} else {
if(mysql_result(mysql_query("SELECT COUNT(`id`) FROM `companies` WHERE `username`='$username'"), 0) == 1){
$errors[] = 'That username already exists.';
}
if(filter_var($email, FILTER_VALIDATE_EMAIL) === false){
$errors[] = 'E-mail address is not valid.';
}

}
if(!empty($errors)){
foreach($errors as $error){
echo '<font size="+1" color="#FF0000">'.$error.'</font><br />';
}
} else {

mysql_query("INSERT INTO `companies` (`id`,`username`,`email`) VALUES ('','$username','$email');");
$body = 'Welcome, '.$email.'!

This e-mail is to verify that your deatails are correct and to download our executive summary document.

<a href="pdf/executive-summary.pdf.pdf">Download Ececutive Sumary</a>
<br />
Your Company Name is: '.$username.'
';
mail($email, 'You have submitted your details', $body, 'From: brian@bmandco.co.uk');
print('Details Submitted!');
}
}

?>



Redirects the me to email.php to a blank page but again.. doesn't send the actual e-mail.

ShaneC
04-21-2012, 04:12 AM
Well you jumped the gun a bit! So with email.php modified like that, do the following:

Change your form back to something like this:



<form method="post" action="index.php">


and then at the top of your index.php, right below that init we added those many moons ago, add require( 'email.php' );.

Once that's done, try submitting from index.php and let me know what happens.

BrianMartin&Co
04-21-2012, 04:20 AM
Well you jumped the gun a bit! So with email.php modified like that, do the following:

Change your form back to something like this:



<form method="post" action="index.php">


and then at the top of your index.php, right below that init we added those many moons ago, add require( 'email.php' );.

Once that's done, try submitting from index.php and let me know what happens.

Nothing to report, again no errors or nothing including no e-mails being sent :(

ShaneC
04-21-2012, 04:21 AM
Please post (or PM) the complete copies of your current index.php and email.php files. That may allow me to help you further.

ShaneC
04-21-2012, 04:44 AM
Okay, currently the only thing you have at the top of your index file is:



<?php require('email.php'); ?>


Replace this with:



<?php require( 'includes/init.php' ); ?>
<?php require('email.php'); ?>
error_reporting( E_ALL );


Then tell me exactly what happens, please be as descriptive as possible.

Also, if possible, please provide for me the web page you're currently testing this at. I'm unable to see your <form> element code in any of the files you've provided via PM.

BrianMartin&Co
04-21-2012, 04:48 AM
Okay....

I fill out the form....

The web-page refreshes.

error_reporting( E_ALL ); is displayed at the top of the page but with no information.

no information is recorded in the database. no e-mail is sent.

ShaneC
04-21-2012, 04:50 AM
Sorry about that,

replace



error_reporting( E_ALL );


With



<?php error_reporting( E_ALL ); ?>

ShaneC
04-21-2012, 04:53 AM
Also, in email.php, please modify the first few lines to look like this:

From this:



<?php
if(isset($_POST['username'], $_POST['email'])){
$username = mysql_real_escape_string($_POST['username']);


to this:



<?php
echo( "Email.php has been included. That's a good sign" );
if(isset($_POST['username'], $_POST['email'])){
echo( "We've detected a submission, also a good sign." );
$username = mysql_real_escape_string($_POST['username']);

BrianMartin&Co
04-21-2012, 04:59 AM
okay

again, no e-mail in database,
no e-mail sent..

when submit no error messages just refreshes..

however...


Email.php has been included. That's a good sign

right at the top of the index.php page

ShaneC
04-21-2012, 05:02 AM
Problem (hopefully) located:

Your current line reads:



<label for="password">Your E-Mail:</label><input name="password" type="text" id="password" value="" size="10" maxlength="50" /></p>


Thus it isn't being submitted.

Change that to:



<label for="email">Your E-Mail:</label><input name="email" type="text" id="email" value="" size="10" maxlength="50" /></p>



Oftentimes the best debugging tools can be to put in print statements to see where you're getting in your code.

BrianMartin&Co
04-21-2012, 05:08 AM
Problem (hopefully) located:

Your current line reads:



<label for="password">Your E-Mail:</label><input name="password" type="text" id="password" value="" size="10" maxlength="50" /></p>


Thus it isn't being submitted.

Change that to:



<label for="email">Your E-Mail:</label><input name="email" type="text" id="email" value="" size="10" maxlength="50" /></p>



Oftentimes the best debugging tools can be to put in print statements to see where you're getting in your code.

OH MY DAYS!! I didn't even notice that and the reason I over looked that was because originally it was mean't for passwords. It works :D

THANK YOU so much :D

Brian

ShaneC
04-21-2012, 05:09 AM
My pleasure, glad we got that located for you!

In the future I would definitely recommend posting all the relevant files up front! It would definitely help speed along debugging :).

Have a good night!

BrianMartin&Co
04-21-2012, 05:11 AM
My pleasure, glad we got that located for you!

In the future I would definitely recommend posting all the relevant files up front! It would definitely help speed along debugging :).

Have a good night!

Yes, sorry about that. but thank you :D

tangoforce
04-21-2012, 01:07 PM
Yes, sorry about that.

Really? I don't think so. You were asked to post it at the beginning of the topic and you pretty much refused to do so, ignored most of my advice, gave conflicting information (stating index.php does not send emails and then later saying it should) and then dragging it out to 4 pages.

I tried to help you, you didn't want to be helped so I am adding you to my ignore list.

BrianMartin&Co
04-21-2012, 01:35 PM
Really? I don't think so. You were asked to post it at the beginning of the topic and you pretty much refused to do so, ignored most of my advice, gave conflicting information (stating index.php does not send emails and then later saying it should) and then dragging it out to 4 pages.

I tried to help you, you didn't want to be helped so I am adding you to my ignore list.

& perhaps if you didn't come across as such as rude aggressive person I may have had understood.

I got there in the end. ShaneC was really helpful. You (tangoforce) were just a c you next tuesday.

I don't plan to write on this forum again anyway.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum