473,398 Members | 2,125 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,398 software developers and data experts.

My form doesn't move

8
Hello guys please when i click submit on my form,it doesnt move at all not even a failed message comes up,nothing happens.This is my code below please help.Cheers


Expand|Select|Wrap|Line Numbers
  1. <?php
  2.    $to = $_POST['to'];
  3.    $from = $_POST['from'];
  4.    $bcc = $_POST['bcc'];
  5.    $subject = $_POST['subject'];
  6.    $message = $_POST['message'];
  7.  
  8.    $headers .= "To: $to \r\n";
  9.    $headers = "From: $from\r\n";
  10.    $headers .= "Bcc: $bcc \r\n";
  11.    $headers .= "Reply-to: $from\r\n";
  12.  
  13.    // send mail
  14.    ini_set("sendmail_from", "user@domain.com" );
  15.    if (mail($to,$subject,$message,$headers)){
  16.      echo "Message sent successfully";
  17.    }else{
  18.      echo "Error: Sending your message failed";
  19.    }
  20.  
  21. ?>
Sep 15 '09 #1
6 1441
Markus
6,050 Expert 4TB
If your form doesn't even submit, then this is not a PHP problem. You'll have to explain a little more, provide the HTML markup, etc.

Also, use [code] tags when posting code.

Mark.
Sep 15 '09 #2
Dormilich
8,658 Expert Mod 8TB
line 9 causes line 8 to be dropped, you have no email address to send to.
Sep 15 '09 #3
BenKen
8
Pls what do you mean by line 9 affects 8?
Sep 21 '09 #4
Markus
6,050 Expert 4TB
@BenKen
You are not concatenating the string, like you are on line #8. Line #9 effectively overwrites the string that was created at line #8.
Sep 21 '09 #5
TheServant
1,168 Expert 1GB
There is no fullstop before the equals sign on line 9. Basically you are resetting your $headers variable.

@Markus
Sep 21 '09 #6
Markus
6,050 Expert 4TB
@TheServant
We must've only been seconds apart ;D
Sep 21 '09 #7

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

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
4
by: Zhang Weiwu | last post by:
This is really very stange. I have a form like this: <form id="form_A"> xxxx </form> This form is on one page in a page of a web application, it is the only form on that page. on the end of...
17
by: Neil Ginsberg | last post by:
OK, this is a stupid thing, but I can't seem to get this to work. I have a form with a subform (in continuous form view). A combo box on the main form has code in the AfterUpdate event which adds a...
4
by: Eric Sabine | last post by:
For a certain app, I'd like the user to be able to move buttons around (I mean physically move them). The reason isn't really important, but it has to do with an organizational layout. Anyway, it...
22
by: Br | last post by:
First issue: When using ADPs you no longer have the ability to issue a me.refresh to save the current record on a form (the me.refresh does a requery in an ADP). We usually do this before...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
8
by: TORQUE | last post by:
Hi, I am having some trouble with recording a field on a form into my Table after formatting it to calculate several fields on the form. If i just put the amount in the field and have it linked...
6
by: Rob | last post by:
This is a curious problem. It seems like it should be quite easy. Of course a timer is used to determine when form should be closed, but how do you consistently reset the timer when the mouse is...
1
by: Simon | last post by:
Dear reader, How can I move the record pointer in a sub form. The sub form is a datasheet type. Both forms have the same reference key. How can I move the record pointer in the sub form...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.