Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 63
Search took 0.19 seconds.
Search: Posts Made By: piers
Forum: PHP 08-11-2009, 11:20 AM
Replies: 4
Views: 694
Posted By piers
cool idea to set up a cron job - I was tinkering...

cool idea to set up a cron job - I was tinkering around with the code I'd already written and tested and I knew that the mail() return was successful (coz I deliver the return to the user). I was...
Forum: PHP 08-11-2009, 03:53 AM
Replies: 4
Views: 694
Posted By piers
Just figured out that my mail server was down......

Just figured out that my mail server was down... apologies for posting in haste - it's working fine now :)
Forum: PHP 08-11-2009, 02:09 AM
Replies: 4
Views: 694
Posted By piers
Problem with nl2br in html email

I'm using: $postmessage = nl2br($_POST['message']) to insert line breaks into a user-generated message embedded in an html email (input from text area name='message').

In the flow of the html I...
Forum: PHP 08-09-2009, 07:18 AM
Replies: 19
Views: 1,641
Posted By piers
Right on, PappaJohn - thanks! Hate to be so...

Right on, PappaJohn - thanks!

Hate to be so clueless, but I'm no php expert....

Would I use this function in the form?

I have:

<textarea name="message" rows="5" cols="31"
class="<?php...
Forum: PHP 08-09-2009, 03:31 AM
Replies: 19
Views: 1,641
Posted By piers
Ah.. good catch, thanks - but I think that's a...

Ah.. good catch, thanks - but I think that's a typo I made in the post... in the code I managed to get it right ;P

But I still can't figure out how to get user-generated line breaks to output...
Forum: PHP 08-09-2009, 02:12 AM
Replies: 19
Views: 1,641
Posted By piers
Ummm.... except one thing: I see that line...

Ummm.... except one thing:

I see that line breaks (or returns) in the 'message' aren't outputted when $_POST['message'] is included in the body of the html... everything is reduced to a single...
Forum: PHP 08-09-2009, 02:01 AM
Replies: 19
Views: 1,641
Posted By piers
Yup - working perfectly.... thanks!

Yup - working perfectly.... thanks!
Forum: PHP 08-09-2009, 01:45 AM
Replies: 19
Views: 1,641
Posted By piers
Thanks, mattf.. :) So something like?: ...

Thanks, mattf.. :)

So something like?:

if(empty($errormessages)) {
$emailsubject = str_replace('[name]', $_POST['name'], $emailsubject);
$emailsubject =...
Forum: PHP 08-08-2009, 08:59 AM
Replies: 19
Views: 1,641
Posted By piers
Actually, I'd like to give the sender the option...

Actually, I'd like to give the sender the option to send an html or plain text email....

I've got all of that working but, of course, at the momemt the html mark up is being emailed as text (when...
Forum: PHP 08-07-2009, 01:24 PM
Replies: 9
Views: 920
Posted By piers
sheesh - sometimes I'm so bone headed. ...

sheesh - sometimes I'm so bone headed.

Absolute paths, yes - but http//: instead of http://

Always in too much of a hurry :)

Now working perfectly... thanks!
Forum: PHP 08-07-2009, 01:07 PM
Replies: 9
Views: 920
Posted By piers
Right... well - Everything's basically...

Right... well -

Everything's basically working - the html email is formatting okay... but none of the images (PNG's) are displaying - so maybe there's something missing from the headers after...
Forum: PHP 08-07-2009, 12:10 PM
Replies: 9
Views: 920
Posted By piers
haha... that seems to work. let's see if...

haha... that seems to work.

let's see if it'll send a more complex html email than <b>This is a test</b>...

I'll post back :)
Forum: PHP 08-07-2009, 11:36 AM
Replies: 9
Views: 920
Posted By piers
Yeah, I'm sure about that... if I change the...

Yeah, I'm sure about that... if I change the headers to:

$emailheader = "From: " . $_POST['email'] . "\r\n" .
"Reply-To: " . $_POST['email'] . "\r\n";

then there are no...
Forum: PHP 08-07-2009, 11:21 AM
Replies: 9
Views: 920
Posted By piers
Thanks for your reply! I mean this message: ...

Thanks for your reply!

I mean this message:

$emailmessage .= "\r\n\n" .
$_POST['message'] .
"\n\n\n\n<b>This is a test</b>";

never...
Forum: PHP 08-07-2009, 04:12 AM
Replies: 9
Views: 920
Posted By piers
Problem with headers sending html email...

Hi,

I have a script I'm trying to wrangle to send an html email. So far I have:

if(empty($errormessages)) {
$emailsubject = str_replace('[name]', $_POST['name'], $emailsubject);
...
Forum: PHP 08-06-2009, 11:06 AM
Replies: 19
Views: 1,641
Posted By piers
Thanks for your reply.. :) I see... so if I...

Thanks for your reply.. :)

I see... so if I wanted to send two entirely different emails (rather than stripping the headers), I could try:

if ($_POST['htmlemail'] == 'Y')
{...
Forum: PHP 08-06-2009, 03:21 AM
Replies: 19
Views: 1,641
Posted By piers
Send text or html as per radio check button?

Hi, I'm a total php newbie, but I have a script working that forwards an email from a form on a site I'm working on.

Currently it's configured to send a text email only:
...
Forum: DOM and JSON scripting 07-25-2009, 02:03 PM
Replies: 4
Views: 1,079
Posted By piers
yes, it's definitely a (very) low security input...

yes, it's definitely a (very) low security input - but in this instance that's fine...

Thanks for the help :) and I'll check out the link....
Forum: DOM and JSON scripting 07-25-2009, 12:29 AM
Replies: 4
Views: 1,079
Posted By piers
hi mioot, thanks for the response :] Yes it...

hi mioot, thanks for the response :]

Yes it seems the function is working now, just not quite as I expected. At the moment it returns an alert for whatever the user inputs (valid or not valid)...
Forum: DOM and JSON scripting 07-22-2009, 06:12 AM
Replies: 4
Views: 1,079
Posted By piers
Help needed with simple form input script

I'm very new to javascript and I'm trying to write some code for an input field that only permits the user to continue if the link they are inputting is valid..

So far I have this:

function...
Forum: JavaScript frameworks 07-20-2009, 02:38 AM
Replies: 5
Views: 2,527
Posted By piers
Quick question: If document.movie.SetURL()...

Quick question:

If document.movie.SetURL() has a variable, which is the url, as in:

document.movie.SetURL(path/mov.mov)

would the above code work for all the variables when the function is...
Forum: HTML & CSS 07-19-2009, 04:12 PM
Replies: 2
Views: 588
Posted By piers
Hi abduraooft, thanks for your response. You...

Hi abduraooft, thanks for your response.

You can check out a wip at http://www.amls.tv/amls/index.html

It's the 'cloud' rollover that slides behind the content div on all the pages.... any...
Forum: HTML & CSS 07-19-2009, 02:40 PM
Replies: 2
Views: 588
Posted By piers
Rollover for low z-index image

This is probably something everyone else but me knows :)

I have a rollover image on a page I'm working on - but it's possible, if the user resizes their browser, that the image can slide behind a...
Forum: JavaScript frameworks 07-18-2009, 02:47 PM
Replies: 5
Views: 2,527
Posted By piers
yeah - it has to do with FF's optimization - it...

yeah - it has to do with FF's optimization - it doesn't instantiate objects that are hidden with display: none
Forum: JavaScript frameworks 07-18-2009, 12:57 PM
Replies: 5
Views: 2,527
Posted By piers
Hi venegal, thanks for your response. ...

Hi venegal, thanks for your response.

Actually it's not so much that I'm lazy... although I definitely am :]

I'm trying to address a cross-browser issue that's kinda hard to test for under all...
Showing results 1 to 25 of 63

 
Forum Jump

All times are GMT +1. The time now is 12:07 AM.