Search found 13 matches

by rhender
Wed Mar 27, 2013 1:53 pm
Forum: PHP coding => General
Topic: how do I echo the # of comments from database??
Replies: 3
Views: 1615

Re: how do I echo the # of comments from database??

Thank you for the replies. I will have to look over them now, to see what all is going on. I will respond tomorrow most likely.

Thanks to both of you!
by rhender
Mon Mar 25, 2013 9:07 am
Forum: PHP coding => General
Topic: how do I echo the # of comments from database??
Replies: 3
Views: 1615

how do I echo the # of comments from database??

So, I have created a blog for myself, which allows comments. I want to display the # of comments on the web page like so.... Comments(9) >>>> and then the nine comments follow... My question is this. In this example, there are 9 comments to be displayed. How do I use PHP to echo the "9", or number o...
by rhender
Wed Feb 29, 2012 9:38 am
Forum: PHP coding => Mail
Topic: Mail help
Replies: 4
Views: 1641

Re: Mail help

This is just the code for validating the form. I called it form-validation.php, and I have it in an "_includes" folder... it came from the Charles Wyke Book I was talking about. Let me know if you need more help. <?php function verifyAlphaNum ($testString) { // Check for letters, numbers and dash, p...
by rhender
Tue Feb 21, 2012 8:41 am
Forum: PHP coding => Mail
Topic: need to send auto response from form submission
Replies: 0
Views: 630

need to send auto response from form submission

Hello, I have a client who would like to send an immediate email response with a video, when a user submits his free quote form on his site. He set up a Gmail account specifically for the auto response, with a link to a video that describes his business and services (it is already set up to auto res...
by rhender
Sat Feb 11, 2012 12:57 pm
Forum: PHP coding => General
Topic: Layman's terms explanation of sidebar code?
Replies: 3
Views: 755

Re: Layman's terms explanation of sidebar code?

Great. Thanks Rupali. I really appreciate it.

And yes I'm working on a WordPress site right now, so that would make sense. :)
by rhender
Fri Feb 10, 2012 11:48 am
Forum: PHP coding => General
Topic: Layman's terms explanation of sidebar code?
Replies: 3
Views: 755

Layman's terms explanation of sidebar code?

Could someone please explain to me what the following code is saying in layman's terms.

I'm new to PHP and I'm just looking for an explanation of what this is saying. Thank you,

<?php if (!dynamic_sidebar('Right Sidebar')) : ?>
by rhender
Wed Feb 08, 2012 2:58 pm
Forum: PHP coding => Mail
Topic: what does the action part mean in the form?
Replies: 3
Views: 1385

Re: what does the action part mean in the form?

Oh ok... thanks rupali.

So just to be sure I'm understanding you correctly... They mean the same thing? Empty or with the PHP SELF stuff...?
by rhender
Wed Feb 08, 2012 2:53 pm
Forum: PHP coding => Mail
Topic: Mail help
Replies: 4
Views: 1641

Re: Mail help

Hi there, All of the code I'm referring to is actually in a few posts down, that I started a thread for. It's called "designating who email is from" or something like that. The last post in that thread is where I pasted the code that I am using, from the book I read by Charles Wyke Smith... I think ...
by rhender
Tue Feb 07, 2012 11:31 am
Forum: PHP coding => Mail
Topic: what does the action part mean in the form?
Replies: 3
Views: 1385

what does the action part mean in the form?

I have this in the action attribute in my form element on my personal site. <form action=" <?php $_SERVER['PHP_SELF'] ?> " method="POST"> It works fine, but I'm just wondering what it means in layman's terms. The reason I ask, is because I am helping a friend with his forms, and the action attribute...
by rhender
Mon Feb 06, 2012 2:58 pm
Forum: PHP coding => Mail
Topic: Designating who a Form Email is From
Replies: 4
Views: 1460

Re: Designating who a Form Email is From

Here is the php code that I have in the <head> of my contact page. <?php $hostUrl="myhostname"; $userName="my-db-username"; $password="my-password"; $connectID = mysql_connect($hostUrl, $userName, $password) or die ("Sorry, can't connect to database"); mysql_select_db("my-db-name", $connectID) or di...
by rhender
Mon Feb 06, 2012 1:48 pm
Forum: PHP coding => Mail
Topic: Designating who a Form Email is From
Replies: 4
Views: 1460

Re: Designating who a Form Email is From

Thank you egami!

That is just what I needed and it works great.

Thanks so much. I'm very happy :)
by rhender
Mon Feb 06, 2012 12:26 pm
Forum: PHP coding => Mail
Topic: Mail help
Replies: 4
Views: 1641

Re: Mail help

I imagine that this is a form validation issue.

I read a book by Charles Wyke Smith that included a function for validating simple forms.

I can send it to you - the function - , and possibly help you out.

Just let me know. Spam sucks.
by rhender
Mon Feb 06, 2012 12:10 pm
Forum: PHP coding => Mail
Topic: Designating who a Form Email is From
Replies: 4
Views: 1460

Designating who a Form Email is From

Hello to all, I have a contact form on my personal website. When I receive emails from the contact form on my site... the Email From area shows my full hosting name. Is there a way to change this with PHP? Thank you, EDIT: I just found this a couple of posts down... $headers = 'From: ' . $_POST [ "f...