Search found 38 matches

by josh22x
Sun Jul 06, 2008 2:13 pm
Forum: PHP - Code
Topic: php mail() sender? www-data??
Replies: 1
Views: 1788

php mail() sender? www-data??

How do I change my php mai() or server so that the sender from my php mail form does not say www-data@....?

Thanks!
Josh
by josh22x
Fri Jun 27, 2008 5:04 pm
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

Re: header - preventing resubmissions with browser refresh?

How do I do this: "Check to make sure the browser is receiving the Location header."?

Thanks!
by josh22x
Tue Jun 24, 2008 2:46 pm
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

Re: header - preventing resubmissions with browser refresh?

Anyone got an idea how I can do this?


Thanks!
by josh22x
Mon Jun 23, 2008 10:53 am
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

Re: header - preventing resubmissions with browser refresh?

Ok, well I got the browser to stop saying header already sent out by using the ob_start(); and ob_flush(). I placed the ob_start() at the beginning of the html and css in the page and the placed the ob_flush() after my header redirct statement. However the redirect is not preventing resubmissions, a...
by josh22x
Sun Jun 22, 2008 4:13 pm
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

Re: header - preventing resubmissions with browser refresh?

I tried using a form of server incrementation, but it is not working. What am I doing wrong here? Thanks! <?php session_start(); $_SESSION["count"] = '0'; check_valid_user(); $username = $_SESSION['valid_user']; $title=$_POST['title']; $content=$_POST['content'];       if (isset($_SESSION[...
by josh22x
Sun Jun 22, 2008 1:57 pm
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

Re: header - preventing resubmissions with browser refresh?

If there any way that you could offer me an example or something on exactly how to accomplish this? I am new to PHP and this is on area that is really confusing to me. Here is the snipping of the code I am trying to keep from resubmitting: function add_blog($username, $title, $content) {     $connec...
by josh22x
Sat Jun 21, 2008 5:54 pm
Forum: PHP - Code
Topic: header - preventing resubmissions with browser refresh?
Replies: 10
Views: 1481

header - preventing resubmissions with browser refresh?

Hey.... I am unsure exactly how to prevent resubmissions into my database when I refresh the browser. I am using a mysql insert statement. So if I enter text in the form and click submit it is added to the database; however if I refresh the browser on that page the same text is duplicated in the dat...
by josh22x
Wed Jun 11, 2008 10:14 am
Forum: PHP - Code
Topic: Mail not sending??
Replies: 2
Views: 123

Re: Mail not sending??

anybody got any ideas?
by josh22x
Sat Jun 07, 2008 9:44 pm
Forum: PHP - Code
Topic: Mail not sending??
Replies: 2
Views: 123

Re: Mail not sending??

Ok, well it did return true after installing sendmail, which I did not know I had to install, however, the email address that is assigned did not receive any mail?? It is also not in spam. Do you know what could be wrong? By the way here is the out put of nmap -sT localhost: PORT STATE SERVICE 21/tc...
by josh22x
Sat Jun 07, 2008 8:43 pm
Forum: PHP - Code
Topic: Mail not sending??
Replies: 2
Views: 123

Mail not sending??

Hey: I am having trouble with this PHP mail script. I have implemented the mail() function in PHP. It seems to be working except for the fact that it will not send the mail. I have been told that I need to change some of the configuration in the php.ini file. However, I am not sure which ones I need...
by josh22x
Tue Jun 03, 2008 9:49 pm
Forum: PHP - Code
Topic: mysql_query(): supplied argument is not a valid..?
Replies: 8
Views: 477

Re: mysql_query(): supplied argument is not a valid..?

Ok, I have got a more informative error now: Here you go: Code with your lines added: <?php session_start(); // Report all PHP errors error_reporting(E_STRICT); require_once('required_files.php'); require_once('database_connect.php');   $username = $_SESSION['valid_user']; $title=$_POST['title']; $c...
by josh22x
Tue Jun 03, 2008 8:41 pm
Forum: PHP - Code
Topic: mysql_query(): supplied argument is not a valid..?
Replies: 8
Views: 477

Re: mysql_query(): supplied argument is not a valid..?

Ok, thanks for your help!

So I changed it to:

Code: Select all

$con = mysql_query($insert, $connect) or die(mysql_error());
However, I still get the same error, no extra information. What am I doing wrong?

Thanks!
by josh22x
Tue Jun 03, 2008 5:23 pm
Forum: PHP - Code
Topic: mysql_query(): supplied argument is not a valid..?
Replies: 8
Views: 477

Re: mysql_query(): supplied argument is not a valid..?

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /var/www/html/PHP_blog/blog_engine.php on line 20

Here you go, Thanks!
by josh22x
Tue Jun 03, 2008 4:14 pm
Forum: PHP - Code
Topic: mysql_query(): supplied argument is not a valid..?
Replies: 8
Views: 477

mysql_query(): supplied argument is not a valid..?

Hey, I am trying to connect to my database and I keep getting the error: mysql_query(): supplied argument is not a valid MySQL-Link resource Below is the the section of the PHP code that I am using to process this form, once the user has logged in: <?php session_start(); error_reporting(E_STRICT); r...