Results 1 to 4 of 4

Thread: a little help in php

  1. #1
    sparktari4u is offline Junior Member
    Last Online
    21st July 2016 @ 12:56 PM
    Join Date
    25 Feb 2009
    Posts
    8
    Threads
    1
    Credits
    0
    Thanked
    0

    Default a little help in php

    i have created my website and in the feedback section i have made a form where the web site take the name email id and message of the person and by pressing the send button it should send the form data to my email id .... but the send button doesn't work ... the following is the code...

    <?
    $destination="spark_tari4u***********";
    $name=$_POST['name1'];
    $E-mail=$_POST['email1'];
    $from =$_POST['email1'];
    $mes=$_POST['message1'];
    $subject=$_POST['subj1'];
    $header="From: $from\n";
    $mes="Name: $name\n
    E-mail: $email\n
    Subject: $subject\n
    Message: $mes\n";
    mail("spark_tari4u***********", $destination,$subject,$mes,$header);

  2. #2
    sparktari4u is offline Junior Member
    Last Online
    21st July 2016 @ 12:56 PM
    Join Date
    25 Feb 2009
    Posts
    8
    Threads
    1
    Credits
    0
    Thanked
    0

    Default

    can some body help me please

    i have created my website and in the feedback section i have made a form where the web site take the name email id and message of the person and by pressing the send button it should send the form data to my email id .... but the send button doesn't work ... the following is the code...

    <?
    $destination="spark_tari4u***********";
    $name=$_POST['name1'];
    $E-mail=$_POST['email1'];
    $from =$_POST['email1'];
    $mes=$_POST['message1'];
    $subject=$_POST['subj1'];
    $header="From: $from\n";
    $mes="Name: $name\n
    E-mail: $email\n
    Subject: $subject\n
    Message: $mes\n";
    mail("spark_tari4u***********", $destination,$subject,$mes,$header);

  3. #3
    zaidi87 is offline Junior Member
    Last Online
    16th May 2012 @ 11:36 AM
    Join Date
    25 Feb 2010
    Location
    Karachi
    Age
    36
    Gender
    Male
    Posts
    10
    Threads
    3
    Credits
    955
    Thanked
    0

    Default

    Send complete code of your file(also of HTML)

    form k tag main php file ka path do, and send button ki type submit rakho

    agar php code and form aik he page par hain to form ka action is tarah hoga <?php $_SERVER[PHP_SELF] ?> (is case main action is tarah hoga phpfilename.php)

    warna php file ka path hoga

  4. #4
    Royalswat is offline Junior Member
    Last Online
    1st December 2012 @ 03:41 PM
    Join Date
    14 Dec 2009
    Age
    30
    Posts
    28
    Threads
    1
    Credits
    0
    Thanked: 1

    Default

    mail("spark_tari4u***********", $destination,$subject,$mes,$header);
    apne ghalat lika he ye liko

    mail($destination,$subject,$mes,$header);

Similar Threads

  1. 300 and more PHP Scripts For Webmaster (Super Pack)
    By waqar555 in forum English IT Zone
    Replies: 27
    Last Post: 15th October 2013, 09:42 AM
  2. Replies: 2
    Last Post: 21st February 2012, 01:29 PM
  3. Replies: 27
    Last Post: 19th August 2011, 11:11 PM
  4. -=<<Index - PHP MySQL Course By shakeel>>=-
    By IT.BOY in forum PHP MySQL
    Replies: 0
    Last Post: 13th July 2011, 06:26 PM
  5. Replies: 14
    Last Post: 18th February 2011, 01:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •