I have a few questions so this post will be a larger one! Sorry, but I'm a bit of a PHP newbie so be gentle with me!
Awhile back I wrote out a simple forum to email processor that I used with a few sites I have. I found this past week or so that all of a sudden they were not working. I was told that I need to replace any $variable with $_REQUEST[variable]. I did do this as seen in the code below but I found that if I added the $_REQUEST before $timestamp in the $thankyoumessage that the time would not display on the page but it would work if I left it as $timestamp. The same goes for if I were to include the $subject in the $body. It will not display if I add $_REQUEST before $subject if I were to add that to the $body.
I was curious to know if someone could tell me why this is? These processors used to work fine with just $variable. If I don't use the $_REQUEST for the forum variables it just generates blank responses in the email.
my current script is: (i'm also aware that the date/time fuctions only works with php 5 and the sites where this processor is being used both use 5)
Code: <?php
date_default_timezone_set('America/Edmonton');
$yourEmail = "blank@blank.com";
$subject = "Quote Request";
$body = "Contact Information
n First Name: $_REQUEST[first_name] n Last Name: $_REQUEST[last_name] n Company Name: $_REQUEST[company_name] n Contact Number: $_REQUEST[contact_number] n Email Address: $_REQUEST[email] n Project Information n Project is: $_REQUEST[project] n Describe what needs to be done: $_REQUEST[describe] n Estimate # of Pages: $_REQUEST[number_pages] n Will you provide a logo: $_REQUEST[provide_logo] n Will you provide artwork: $_REQUEST[artwork] n Will you provide body copy: $_REQUEST[body_copy] n E-commerce features required: $_REQUEST[ecommerce] n Website Maintanence: $_REQUEST[maintanence] n Timeframe for completion: $_REQUEST[timeframe]";
$timestamp = date("n/j/Y, a\t g:i a T");
$thankyousubject = "Quote Request Submitted Successfully n on n $timestamp";
$thankyoumsg = "Thank you $_REQUEST[first_name] $_REQUEST[last_name] for showing interest in designFox Media Works. Please allow 24-48 business hours for a response.";
?>
<?php
mail($yourEmail, $subject, $body, "From: $_REQUEST[first_name] $_REQUEST[last_name] < $_REQUEST[email] >");
print "<CENTER><B><body bgcolor='#000000'><font color='#FFFFFF'> $thankyousubject </B></CENTER>
<center>$thankyoumsg</center><BR><BR><CENTER>
</font><A HREF="http://www.designfoxmediaworks.com" TARGET="_top"><IMG SRC="http://www.designfoxmediaworks.com/images/formbanner.gif" WIDTH="600" HEIGHT="100" ALT="Return to designFox Media Works" BORDER="0"></A></CENTER></body>"
I was also curious in reference to this processor is there a set way to have a timed redirect with php? Or would it be better to look into doing that with javascript?
My next question is, if I wanted to have say a rich text editor replace a comment box how would one go about sending that data in the email processor or post it to another page?
Anti Spam Code
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I have been working on this problem for 3 days and have had no luck!Here we go:I have a rate and
Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:QuoteBlah blahBlah blahetcbut when i echo it out, there is no formatting left it comes out as:QuoteBlah blah Blah blah etcis there an easy way to stop this?
Pagination won't carry results past page 2.
Hi all,I've worked out my pagination script and its paginating fine until I click next from page 2 at which point it stops displaying results. I know its something really simple, but can't see what
Error in write byte array into document in SM58
Hi Gurus,
order by date not ID number help php
I am trying to orginize the following code to order by date not id number.any help would be greatCode: [Select]<?php // Status // 1. inshop // 2 in progress // 3 pending // 4 to be
Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and timestamp is specified 10-11 am
Help with explandable category tree
I have the below query: SELECT l1.id as lev1_id,l2.id as lev2_id,l3.id as lev3_id,l1.category AS lev1, l2.category as lev2, l3.category as lev3 FROM categories AS l1LEFT JOIN categories AS l2 ON
login box shows up again after logging in 2nd login works
Hello,I am having trouble on my site Lockerz.rack111.com where when you login the login box when you hit submit clears and then when you type your info in again then the login box works.here is the
PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see when I view source, versus what I want to see … I am having image re-sizing issues that
Socket Server
In my following socket server, I am trying to listen to a connection through port 12345 in my web browser. http://127.0.0.1:12345/I assumed that the following would detect that something was trying to