Newbie for the life of me can't figure out where in contact.php you tell it where to send form?
Thx for any help.
I know it's got to be so obbvious.
Why would you send in php vs html?
<?php
if(!$_POST) exit;
$email = $_POST['email'];
//$error[] = preg_match('/\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i', $_POST['email']) ? '' : 'INVALID EMAIL ADDRESS';
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$email )){
$error.="Invalid email address entered";
$errors=1;
if($errors==1) echo $error;
else{
$values = array ('name','email','message');
$required = array('name','email','message');
$your_email = "[email protected]";
$email_subject = "New Message: ".$_POST['subject'];
$email_content = "new message:\n";
foreach($values as $key => $value){
if(in_array($value,$required)){
if ($key != 'subject' && $key != 'company') {
if( empty($_POST[$value]) ) { echo 'PLEASE FILL IN REQUIRED FIELDS'; exit; }
$email_content .= $value.': '.$_POST[$value]."\n";
if(@mail($your_email,$email_subject,$email_content)) {
echo 'Message sent!';
} else {
echo 'ERROR!';
?>
Thanks. I'm working with different hosts and I guess thats where the confusion for me is coming in. In bluehost, I simply submit my form through form action to http://www.bluehost/bluemail. With the php form construction it 's form action is contact.php. Does this mean that the server I'm working with will uinderstand how to process contact.php and where to send it based on paramaters previously submitted? Or do I instruct the server via the php form? Thanks again
Date: Wed, 8 Feb 2012 13:50:11 -0700
From: [email protected]
To: [email protected]
Subject: Newbie for the life of me can't figure out where in contact.php you tell it where to send form?
Re: Newbie for the life of me can't figure out where in contact.php you tell it where to send form?
created by mhollis55 in Dreamweaver - View the full discussion
The reason why this is done in php is because php is server-side scripting. It's telling your server to do stuff. HTML doesn't tell your server anything, it tells the client (the web browser loading it) to do things. Only your server can send an email.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4194407#4194407
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4194407#4194407. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Dreamweaver by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.
Similar Messages
-
I have an ipad3 and wireless keyboard but for the life on me can not type a pound (GBP) symbol - can anyone help?
I would think you'd have to change the language to British English to get the pound sign. THat or turn off your wireless keyboard and get the pound sign from the on screen keyboard, then turn your wireless board back on.
-
Hi. I just downloaded "angry birds" from the iTunes store. It says it was successfully downloaded and that I can use it on the two mac products I have. I can see an icon for it in the finder on the mac, but I can't figure out how to play the game. Anyone?
Thank you for your reply. After a lot of fruitless searches, I hit on a page that offered the same wisdom you did. I feel like rather a fool for not knowing that. Grr. I really appreciate your answer, and that you didn't end it with "dummy." Cheers to you. Hope someone does something kind for you today.
-
I can't sign on to icloud. It says I need an icloud account. I click the help option it send me back to the same page. I reinstall it nothing.
Download the iCloud Control Panel.
To enable iCloud on your Windows PC, first set up iCloud on your other devices, then install the iCloud Control Panel for Windows (Windows Vista with Service Pack 2 or Windows 7 required).
ok I can't seem to set up iCloud on any device I don't understand... Ive already installed it three times.
Turn on iCloud.
From the Windows Start menu, choose iCloud Control Panel.
Enter the Apple ID you used to create your iCloud account and select the iCloud services you’d like to enable.
For mail, contacts, and calendars, you can use iCloud.com or Outlook 2007 or later.
there is no iCloud control panel but I click on i cloud. Then entere the Apple ID you used to create your iCloud account - WHAT!!!!? where is this I keep trying to find out how to create and iCloud account but I keep getting these stupid directions!!!
Enable automatic downloads.
To enable automatic downloads for your music, apps, and books, open iTunes > Edit > Preferences > Store and select Music, Apps, and Books.* (Requires iTunes 10.5 or later.)
- This is the only step that makes sense and already did it...
Turn on iCloud for the rest of your devices.
To get the most out of iCloud, set it up everywhere.
This is soooo frustrating!!!!
Also I want to be able to look at duplicate songs on my itunes but after I downloaded the new version I can not figure out how to get that back. If the duplicate setting isn't in the new itunes I want the old version back.Did you ever resolve the iCloud problem.I am in the same position and its driving me mad!!! If you have a link to an solution I would appreciate it.
-
I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel. My Basic panel should be below the Histogram. Any ideas how to get it back. I have even uninstalled my lightroom and reinstalled it with same issue. Help!!!
Right click on or near one of the other headers and a pop-up will appear and you will be able to select the Basic Panel for viewing.
-
With the newest update, I can't figure out how to merge duplicate files in "Faces" (iPhoto). I have more than one file going for a face, and use to be able to click and drag them into merging. Can't seem to do it now. Can anyone please help? Thanks
Are you talking about iPhoto or Photos? If Photos, do you mean that Photos has several files for the same person but they are labeled differently and you are trying to merge them as one? If so, then you have to rename one of the files to match the other one with the correct name. If this is not what you mean then could you explain more clearly what you mean. To give an example if I click on Faces and Photos shows me all named faces in the top and on the bottom there are suggested faces that can be dragged onto a face in the top level to merge. If you try to merge two face groups in the top level that are the same person but for some reason the faces are labeled differently you have to label them with the name you want to use and then they will automatically merge.
-
User blocked for some reason...can't figure out ho...
user blocked for some reason...can't figure out how to unblock!!! using for business. no support phone to get help!!!
Hi, BHMN..., and welcome to the Community,
Please do contact Skype Customer Service again to follow up; be sure to reference any support ticket number(s) you may have been provided.
Regards,
Elaine
http://community.skype.com/t5/Security-Privacy-Trust-and/How-to-un-block-a-Skype-account/td-p/799404
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often! -
I activated a new device for my ipod. I can not figure out how to sync newly purchased songs from iTunes onto my iPod.
Hi there,
I would recommend taking a look at the information found in the articles below. The first two articles have the same content, but are geared towards either OS X or Windows.
iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
http://support.apple.com/kb/PH12313
iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
http://support.apple.com/kb/PH12113
How to use multiple iPhone, iPad, or iPod devices with one computer
http://support.apple.com/kb/ht1495
-Griff W. -
Ever since I updated my OS, the screen on my Mac will automatically become huge if I keep my mouse on the screen. I can't figure out how to return the screen to a normal size. Any help?
Hold down the 'ctrl' key and scroll backwards on the mouse.
Then go to System Preferences > Universal Access > Seeing. Turn off the Zoom feature.
Similarly in Sys Pref > Mouse uncheck the box for 'Zoom using scroll wheel…'
If it still occurs after that there may be a corrupt .plist file. -
been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft version? Help me please.. getting a bit bored?
i have this problem too
my dad thinks its because itunes is getting overloaded -
My shuffle is not syncing all of the selected songs & I can't figure out how to get it to sync all the checked songs (syncs some, but not others). Please help!
Perhaps this article can help.
Syncing music to iPod shuffle
B-rock -
I purchased the ExportPDF but I can't convert to Power Point. Could you tell me what I need in order to convert from PDF to Power Point?
You will need PDF Pack to convert to PowerPoint.
Contact Customer Care - they may be able to help you to change your subscription.
[topic moved to PDF Pack forum] -
When recording voiceovers, I click the stop recording button at the end, but I can't figure out how to get rid of the "click" sound before I send off the recording!
njordan wrote:
I can't figure out how to get rid of the "click" sound before I send off the recording!
drag the BottomRight edge of the region to the left, past the unwanted sound -
The site is not unsafe site, but it's not what I wanted to do! How do I get rid of the exception?
I've tried Tools --> Options, and then I've looked mostly in Security and Advanced
I located the Encription area under Advanced, which looked promising, but I can't figure out which certificate I need to revoke; none of the say anything helpful like "user-requested exception" or anything like that.
The exception should have been for either a currently offline site (local only right now), or for the site I was connecting to through an embedded You Tube link. I am not sure which site I added the exception for, though I think it was for YouTube (the site being connected to).Click on the Layout button lower right and choose a Vertical lyout from the dropdown
-
I have been writing on - Pages- app for several years. Pages automatically uses double space between paragraphs. I can not figure out how to make single space between paragraphs. Tried everything. Please help!
Pages User Guide > http://manuals.info.apple.com/en_US/Pages_UserGuide.pdf
Open the user guide then press Command + F on your keyboard.
Type line spacing in the search field top right corner of that window.
Maybe you are looking for
-
Trouble uninstalling iTunes 11 on Windows 7
I'm trying unsuccessfully to uninstall iTunes 11 from my PC laptop; I want to go back to iTunes 10.7 (for the cover flow, of course). When I try to click "uninstall" in Control Panel, it says "Error opening installation log file. Verify that the spec
-
hi, I have to insert a data for my ztable,for 1st time it is updating the data,but for the second time (since all the key fields are same as 1st record),it is going to modify the data in my table.(since i have used modify statement),But i want both t
-
When I installed identical copies of an *.ear file in each of two servers in cluster (WLS 6.0sp2), and try to update the file in the one server which co-locates with admin server host different ports), the othe
-
I really enjoy watching YouTube videos on my big screen TV using Airplay but Airplay just goes away for weeks or months and then comes back for a week or so. All I can think of would be to reload the OS but I can't figure how to do this. I wonder if
-
Zen Vision:M w/ Yahoo or any other subscript
Not having a lot of success getting Pray4Sure to work with the ZVM w/ Yahoo. Anyone have any success with anything