473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

What is the code to add a default subject to a Email contact/orderform in PHP?

Hey guys,

New challenge I am trying. I have a Order Form for a website. All the information emails directly to me correctly. The only problem I am having is the subject line of that email is (no subject). What would I need to put in the PHP script to have a default email subject.

Example: Website Customer

Would I just use $subject=


The form is located at http://www.penciledmemories.com/orderformre.html Incase a reference is needed for help. Thanks in advance!
Jan 7 '11 #1
3 1763
AutumnsDecay
170 100+
Yes.

The PHP mail() function syntax is:

Expand|Select|Wrap|Line Numbers
  1. mail($to, $subject, $message, $headers);
So if you just have

Expand|Select|Wrap|Line Numbers
  1. $subject = "THIS IS A SUBJECT";
that should work.
Jan 7 '11 #2
Thank you AtumnsDecay, you are always very helpful Sir.
Jan 7 '11 #3
AtumnsDecay, perhaps you can help me with this question I have here http://bytes.com/topic/php/answers/9...re-server-form
Jan 7 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: squash | last post by:
What html code would I need to insert in an email to track if the recipient opened it? I was thinking something that could access a cgi script which I could write. Or perhaps some trick with the...
9
by: Mike L | last post by:
I tried a sample of code in MSDN magazine, but now I'm stuck. What code has the best performance to populate a Data Grid with a SP? Below is the code I have, which might be completing the wrong...
0
by: VM | last post by:
I have a pretty big application made in C but I only want to view the code that's being executed when a button in a toolbar is clicked. Since I didn't write the program, is there an easy way to...
1
by: Mateusz Rajca | last post by:
Hello, What code should I write to hide the taskbar? Mateusz
2
by: KS Tan | last post by:
Hello support, I need help to have asp code to send email to the users. My scenario is like this: An Access database is created to look detect whether the database records not update, then an...
2
by: mistral | last post by:
what code encoded in this snippet? <script language=JavaScript>function dc(x){var...
0
by: Robert Scheer | last post by:
Hi. I am porting an application from asp.net 1.1 to asp.net 2.0. This application has a module that reads some data from a database, including some email addresses. Then, I have a loop that...
1
by: bb nicole | last post by:
What coding should i have if i want to display all the latest job(according to date) which call out from database. For example, all today will display in the website... What code should i have to...
0
by: sheenaa | last post by:
Hi Everyone, I m using ASP.NET 2005 with C# and SQL SERVER 2005. I m using stored procedure and sql datasource control to retrieve the data. I want to use the trigger...
0
by: xspiritualoraclex | last post by:
Hi everyone :) I'd like export email contact from gmail, hotmail and yahoo account. How can I do that? thanks and excuse me for my english :P
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.