Search found 10 matches
- Mon Apr 19, 2010 1:44 pm
- Forum: PHP - Code
- Topic: Delay PHP email in cron
- Replies: 1
- Views: 119
Delay PHP email in cron
Hello All, I hope I'm posting this in the correct place. I'm currently using cron to run a PHP script daily. The purpose of the script is to check a MYSQL database, and if it finds certain entries older than 2 months, it will send an email to the address associated with the entry. What I want to do ...
- Wed Apr 14, 2010 3:40 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
It looks like I finally have it figured out!
By replacing all of my headers with:
printf("<script>location.href='http://www.xxxxxxxx.com/error.htm'</script>");
it seems to be working perfectly
Thanks everyone!
By replacing all of my headers with:
printf("<script>location.href='http://www.xxxxxxxx.com/error.htm'</script>");
it seems to be working perfectly
Thanks everyone!
- Wed Apr 14, 2010 3:17 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
Thanks for being patient with me, I'll admit that this is a friends code, and I've been assigned to fix it, so I may have overlooked something obvious. I replay the if($success) bit that you suggested for debugging. Upon submission, I did receive the "...success..." text on the page, but i...
- Wed Apr 14, 2010 2:39 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
Sorry, I don't think I'm making my issue clear. The email aspect of this code works perfectly. When the user clicks "submit" on the form, I receive the email like I am supposed. However, the webpage is also supposed to navigate to contactthanks.php for the user, and this is not happening. ...
- Wed Apr 14, 2010 1:23 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
Yes, the HTML/form is on one page, contact..html
And the PHP is in its own page, contact.php
And the PHP is in its own page, contact.php
- Wed Apr 14, 2010 1:16 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
That is what I want to happen. When I fill in the form on my end (on the website), and I press submit, the form does not reset (meaning the text remains there), and I do not navigate to contactthanks.php. It appears as though nothing happens. I do however receive the correct email, even though it do...
- Wed Apr 14, 2010 1:11 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
Ok, I updated the If (empty...) entry, and removed the validation() entry.
Any idea on why the page is not changing upon submission?
Any idea on why the page is not changing upon submission?
- Wed Apr 14, 2010 12:54 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
Thanks, I have updated the code as below: <?php function isValidEmail($address) { return preg_match("/^[a-z0-9._\-]+[@]([a-z0-9\-]+[.])+([a-z]{2,4})\$/i", $address); } $EmailFrom = "Contact Form"; $EmailTo = "support@warmglowbooks.com"; $Subject = Trim(stripslashes($_PO...
- Wed Apr 14, 2010 12:38 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Re: Change page using Meta after filling-out Form
I updated the code: <?php function isValidEmail($address) { return preg_match("/^[a-z0-9._\-]+[@]([a-z0-9\-]+[.])+([a-z]{2,4})\$/i", $address); } $EmailFrom = "Contact Form"; $EmailTo = "support@warmglowbooks.com"; $Subject = Trim(stripslashes($_POST['subject'])); $Name...
- Wed Apr 14, 2010 12:01 pm
- Forum: PHP - Code
- Topic: Change page using Meta after filling-out Form
- Replies: 16
- Views: 495
Change page using Meta after filling-out Form
Hi all, I'm trying to create some code where a user fills in a form, and once they hit "submit", the page will change to either a confirmation, or an error page. However, whenever "submit" is hit, nothing happens. The email is sent (or not sent) as it is supposed to, but the page...