I have trouble getting the PHP script to send form data to an email.
I have a very basic contact form that I used before, and I pointed to a standard SendResults.php file. I downloaded them both on the server for the test, but I don't get the emails of the form. Can someone help me with this?
Here is the code for the form:
Contact < h1 > < / h1 >
< p > < img src = "images/contact - hands.jpg ' alt = 'hands' width ="401"height ="299"class ="left-photo-sur"align ="left"/ > < / p >
< class p = 'fax' > < / p >
< class p = 'fax' > < / p >
< class p 'fax' = > please call or use the form below to send your contact information and I will answer you as soon as possible. < /p >
< class p = 'phone number' > 541 954 2602 < /p >
< class p = "center" > Ronit Cohen < /p >
< p > < / p >
< p > < / p >
< h3 class = "center" > use the form below to send a message and I will contact you quickly. < / h3 >
< table width = "600" border = "1" align = "center" cellpadding = "22" cellspacing = "0" >
< b >
< td bgcolor = "#F0F0F0" > < form action = "sendresults.php" method = "post" name = "Contact form" id = "Contact form" > "
< P > name < span class = "red" > * </span >
< input name = "name" type = "text" id = 'name' size = "70" / >
< /p >
< P > E-mail address < span class = "red" > * </span >
< input name = "email" type = "text" id = "email" size = "65" / >
< /p >
< p > telephone number
< name input = 'phone' type = 'text' id = 'phone' size = "40" / >
< /p >
< p >
< label > Message < br / >
< name textarea = 'message' id = cols "message" = "70".
"rows ="5"> < / textarea >"
< / label >
< /p >
< class p = "center" >
< input name = "submit" type = "submit" id = "submit" onclick = "MM_openBrWindow ('thankyou.html'", 'width = 500 height = 400'); " MM_validateForm ('name', ", 'R',"email', ", 'RisEmail', 'phone'", 'NisNum'); return document. MM_returnValue"value ="Send the Message"/ >
< input type = "reset" name = 'Cancel' id = 'Cancel' value = 'Cancel' / >
< /p >
< / form > < table >
< /tr >
< /table >
< p > < / p >
< p > < / p >
< p > < / p >
<!-InstanceEndEditable--> < table >
< /tr >
< /table >
And here is the code for the sendresults.php file:
<? PHP
-Put these settings-
Subject of the email sent to you.
$subject = "Sent 'A Home to Fit You' Contact form info;"
Your email address. This is where the information on the form will be sent.
$emailadd = ' [email protected] ';
Where redirect after form is processed.
$url = ' http://www.tributewebdesign.com/home-to-fit/contact.html';
Makes all the required fields. If the value of '1' no field cannot be empty. If the '0' value any or all fields can be empty.
$req = '0';
-Do not edit below this line-
$text = "comes from the shape: \n\n";
$space = ' ';
$line = '
';
foreach ($_POST as $key = > $value)
{
If ($req is '1')
{
If ($value == ")
{echo "$key is empty"; die ;}
}
$j = strlen ($key);
If ($j > = 20)
{echo "Of the form $key name cannot be longer than 20 characters"; die ;}}
$j = 20 - $j;
for ($i = 1; $i < = $j; $i ++)
{$space. = ' ' ;}}
$value = str_replace ('\n', "$line", $value);
$conc = "{$key}: $space {$value} $line";
$text = $conc;
$space = ' ';
}
mail ($emailadd, $subject, $text, ' from: '. $emailadd. ");
echo "< META HTTP-EQUIV = CONTENT refresh ="0; " URL ='. $url. " » >';
? >
I'd appreciate any help anyone has to offer.
Jennifer
No not a yahoo and google make it much harder to send mail unless it comes from an active server
I had problems in her SCI with gmail, hotmail, ATT and others, even if you use SMTP.
Jennifer, you might check if your server ip is on a blacklist.
http://MXToolbox.com/blacklists.aspx
Tags: Dreamweaver
Similar Questions
-
Hi, I have trouble getting the installer of Creative Cloud 30 day trial to boot on my computer. Here I did successfully about 3 days ago, but since then has picked up a virus. I used system restore to restore my computer about 5 days, which was to remove the creative cloud and Photoshop. Now I am trying to re - download creative cloud with no luck. Any idea would be highly desirable. -Demian Arend
Hello
Sign out of your account... Uninstall... to run vacuuming...
-http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)
-using the vacuuming after uninstalling and prior to the relocation is necessary
-https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
-
I have trouble getting my videos and pictures OF my shared albums. Once I shared them, I can't copy or save on my phone.
After you have shared photos and videos, they are always on your phone, unless you delete them.
-
Original title: HELP
{Moderator note: version of Windows has not been confirmed}
In microsoft mail I get the following script error and cannot print emails, then the error lock the computer.
Script error
An error has occurred in the script on this page
Line 215
1 tank
Unexpected call to method or property access
Code 0
URL: res://ieframe.dll/preview.js
Do you want to continue running scripts on this page
Yes No
I can print other documents.
Please help I need to be able to print my emails.
Thank you
Windows Mail uses the Internet Explorer print engine to print. You can print from Internet Explorer? It is possible that your antivirus software might be the cause. You can try to turn off and then restart and see if it will print. Otherwise, you will need to provide more detailed information depending on your version of Windows, what e-mail program, you are using and what version of Internet Explorer you are using.
Steve
-
I installed an improved version of the Adobe Acrobat Pro DC but I think I had to install the full version. I used the free 30 day trial and come to understand that I have to get the improved version. I'm to understand that he could have the wrong choice on my part. How to get the version that will work for me, without being charged double?
Thank you
Kris rake
Hey Kris,.
Its a double wire.
Please continue the discussion here: I installed an upgrade Adobe Acrobat Pro CC and I think I need to install the full version. I was using the free temporary version of 30 days and so I thought I should just get the upgrade
Kind regards
Ana Maria
-
I have all the Adobe Creative Suite with all the programs installed on my mac, I bought a new mac and go to sell the need for others, but I have to get the programs on the new computer and I also lost the serial number for it, what can I do about it?
-
Can anyone help?
I have trouble getting my LR5 in camera raw to 9.1. PS is little 9.1 LR is still 8.7... help please?
Hello
Camera raw 9.1 comes only with Lightroom CC/6, 5 Lightroom can only be updated up to Camera Raw 8.7
Thank you
-
Please provide ideas to the next question. In an attempt to sign and date a w-9, I get the following message. "This form is editable in Adobe Acrobat DC. Please use Adobe life cycle Designer. "How can I get this document dated and signed without having to buy the life cycle Designer?
Thank you
Rick
Assuming that you are dealing with a PDF file provided by the IRS, you will not be able to e-sign. but you can fill the fields using Adobe Reader or Acrobat. The version of form W-9 that I have does not include a date field, but you can use the feedback tool add text to add a date. You can also digitally sign or use the annotation of pencil tool to draw a signature.
-
My user folder displays the data of 30 GB. Actual data are only 2 GB. I want to wipe my drive C of hidden data. How can I get the details of 30 GB of data shown in the properties of the folder.
Hello
This free program allows you to see what is taking place.
http://www.Jam-software.com/treesize_free/
Here's how to understand Treesize Screenshots:
http://www.Jam-software.com/treesize_free/screenshots.shtml
____________________________________
Also check how much space system restore uses:
http://Windows.Microsoft.com/en-us/Windows7/how-much-disk-space-does-System-Restore-require
_____________________________________
You can clean your hard drive using these two methods.
"Delete files using Disk Cleanup"
Using the free CCleaner program:
http://www.Piriform.com/CCleaner
In NO case use the registry cleaning Option in CCleaner
_____________________________________
Download, install, update and scan your system with the free version of Malwarebytes AntiMalware:
http://www.Malwarebytes.org/products/malwarebytes_free
And Norton Backup, if you are using Norton, can do strange things with filling of hard drive space.
See you soon.
-
Get the difference in days between 2 dates in Essbase 9.3.1
How to calculate to get the difference in days between 2 dates in the format day of Essbase 9.3.1.la is 20090101 (yyyymmdd). If 2010907-20100917 = 10 days.
Start and end dates may extend over several years.@DateDiff does not exist in the 9.3.1 I think. With this assumption...
Could you use the CDF 'Functions of Date'? According to the docs (I've never used it):
@JdaysOffset - returns the number of days between the firstDate and the secondDate.See samplecode.oracle.com for the CDF. Just search for CDF and you will find it on the second page (I think) of the FMCS.
Or see this thread for another approach that I think the CDF under the covers: Re: Formate Date.
Of course, you could spend to 11 for DateDiff. :)
Kind regards
Cameron Lackpour
-
External authentication via the PHP script failed
I'm not a PHP genius - in fact I'm not a backend coder so I'm kinda struggeling with the sample scripts - I still hope for a sample of CF....
I'm trying to run and connect to the CAA via the command line (Terminal). I'm not sure what I'm doing wrong - this is what I'm passing:
PHP f /Applications/MAMP/htdocs/afcs.php args - debug - host = my_pass, http://connectnow.acrobat.com, fcguru, my_login
The username and password I spend are correct. However, I get this response:
Error: message exception 'AFCSError' with ' < State response 'error' = >
< error code = "AUTH_FAILED" >
< msg > failed authorization < / msg >
< / error >
< / answer >
' in /Applications/MAMP/htdocs/afcs.php:86
Really struggeling with this. Once again I get this working from the command line, I don't know how to call it from a script instead. I use CF on the backend, no PHP.
Kind regards
Stefan
Thank you, this is very useful. It seems that I can now connect from the Terminal so that's a good start. Also, I did not see external authentication in PHP for example - I must have been blind.
I'll see how far I get with that. What I'm trying to do is spawn new rooms based on a template on the fly, and I have some doubts, I'll be able to understand this myself. -
Sending data to the PHP Script
I am writing an application that needs to send a GET request with parameters (ie: http://blah.com/GET?name=bob) to a PHP script that interacts with a MySQL database on a server.
Anyone know where I can find a good tutorial on this or point me to another thread?
You can use URLEncodedPostData (check the documentation for the API).
You should do something like this:
URLEncodedPostData postData = new URLEncodedPostData(URLEncodedPostData.DEFAULT_CHARSET, true); postdata.append("www.myurl.com/foobar?"); postdata.append("name",m_nameParam); postData.append("id",Integer.toString(m_locationId)); postData.append("text",m_checkinText); return postData.toString(); -
The Blizzard Downloader must be used to download patches MMORPG World of Warcraft as some more small are not on the download of files and sites sites third parties with patches WoW can not be guaranteed. Ive turned off Windows Firewall, Ive even tried to create a new rule to allow port 3724 which must be open, my WoW folder is not protected and when I click on the icon to start the download I chose FUNCTIONING as administrater.
The problem is not with my router as the downloader worked fine when I used Windows XP. The patch is stopping at 10% and then to say that it has failed. Sometimes the sound indicating there may be a firewall. (Im using Windows 7 now). I even did a trouble Shooting in my network connection
As it looks like the source of the file is corrupted try to get the file from another source that I had that issue a couple of times on different systems of Vista where the patch would not work on 1 system but on another system of Vista
-
Do I have to get the 64-Bit operating system?
My laptop has a 64-bit processor. I plan to put Windows 7 on it. My question is that I have to get a 64 bit version of Windows 7? Is it necessary or can I put regular Windows 7? My reason for asking is that I can't find a 64 bit Version. Unless it's an option selected during the installation of Windows 7? Thanks for any help.
On Saturday, February 12, 2011 13:35:16 + 0000, MissADD wrote:
My laptop has a 64-bit processor. I plan to put Windows 7 on it. My question is that I have to get a 64 bit version of Windows 7?
No. 64-bit CPU can run 32-bit or 64-bit Windows. But a 32-bit
CPU can run only 32-bitIs it necessary or can I put regular Windows 7?
Is not 64-bit vs "ordinary". It is 64-bit or 32-bit.
My reason for asking is that I can't find a 64 bit Version. Unless it's an option selected during the installation of Windows 7? Thanks for any help.
It's not exactly an option, but when you buy a copy of Windows retail
7, it comes with two DVDs, one for 32-bit and one for 64 - bit. But note
you get a license, you can use either, but not both.And also note that it is a forum for Windows Vista. In the future, please
Ask in the right place.Ken Blake (MS-MVP)
-
Last 6 updates Windows have failed; get the error message 8E5E0147
I had a successful Windows since 4.22.13 update. I tried to manually run these updates, but still get error message 8E5E0147. I have not updated the following text:
KB2820197 - s updated for the stop bit ActiveX
KB2829530 - s updated for Windows 7
KB2830290 - s updated for Windows 7
KB2813956 - update for Windows 7
KB2820331 - update for Windows 7
Another IE 10, I did not and would not run anyway.
I don't know what means the error message 8E5E0147. Help, please!
You can reset the Windows Update components by running the Fixit on this page. But if there is malware present, she will continue to reset the connection to the update servers:
How to reset the Windows Update components
http://support.Microsoft.com/kb/971058
Suggest you download and save the Fixit. Then configure the system before the clean boot by running:
How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7
http://support.Microsoft.com/kb/929135
Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.
I suggest before you stop and install the updates, disconnect from the Internet, first.
Maybe you are looking for
-
Color bar line at startup, and then black screen, then startup is very well
macOS Sierra - macOS 10.12 Beta (16A294a) MacBook Pro (15 inch, early 2011) 2.2 GHz MacBook Pro (MC723LL/A) Intel Core i7 Intel HD Graphics 3000 - 512 MB and AMD Radeon HD 6750 M (1024 MB) with automatic switching Processor: 2.2GHz 16GB 1333 MHz DDR3
-
Hello I have an iPhone 6, running iOS 9.3.4 (with the last update August 6, 2016). Problem: I had problems with the load of my iPhone from these days, I sometimes had to push little difficult cable in the port or adjust a bit kind only then it will l
-
TOSHIBA fan control program?
Hello world! (ME again!) Any of you know what TOSHIBA Fan Control program it is? Thank you!Suddste223
-
Satellite A660-14 days - slow internet wireless
Hello I have the Satellite A660-14 days and if I plug a cable (UTP) the speed of the internet (Firefox, IE, FTP,...) are OK (1,1 MB/s).But if I use the wireless (Broadcom adapter) network connection, speed is 0.5 MB/s. All software and drivers are up
-
where is Flash program on ma, 7 months old computer windows7?
to see 2 windows side by side, Im told to use the snap, don't see that in my computer. I have windows7 home preium.