if else statement

7 posts by 4 authors in: Forums > CMS Builder
Last Post: September 8, 2009   (RSS)

hi,

I'm trying to create an if else statement so that if one of the gallery pages doesn't have an image in it, it doesnt display the swf, and if it does have images, it will.

Re: [dsternalski] if else statement

By Chris - September 5, 2009

Hi dsternalski,

What is the name of your upload field? Do you need to test for other types of uploads, or will you only be uploading images?
All the best,
Chris

Re: [chris] if else statement

hi,

the name of the upload field was gallery_images. I managed to get this file to work using count (). Thank you for your reply though.

However, are you able to help me with the contact us form? when i hit the submit button, i get:


Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Users\Dani\Documents\xampp-win32-1.6.6a\xampp\htdocs\janizm\sendemail.php on line 7

is this because it's on a test server and not on a live server? Please find attached the relevant files.

Thanks again.

Re: [chris] if else statement

hi,

I've got the site live, www.janizm.co.uk, but the contact us form isnt working, it just goes to a blank page and doesnt send an email.

Are you able to help me?

Thanks again!

Re: [dsternalski] if else statement

By Donna - September 8, 2009

Hi there,

Unfortunately, we can really only help with our own software. Since we didn't write your contact script, that's not something we can support.

You may want to contact your host to see if they have any suggestions... or try checking out php.net directly for code examples and documentation. :)
Donna

--
support@interactivetools.com

Re: [dsternalski] if else statement

By Kenny - September 8, 2009

Try using a different tutorial than the one you used for those files. They don't look right.

Try this one http://www.phpeasystep.com/phptu/8.html

Or buy this program and never worry about it again - http://www.appnitro.com

Or download a pre-made one that is very simple here
http://www.elprogramero.org/hs/easy-contact-form/

Kenny