Jump to content

realife

New Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by realife

  1. Hello PHP...

     

    Let's say i have a button, and below that i have a number which counting the clicks on the button, for example

     

    <input type="submit" value="Add Click" />  <br>
    So far = 12 Clicks

     

    How can i set it that onclick it will add more to the number ( of course without refreshing the page ) ?

  2. I don't know what output you talking about..

    I just have my php file, and the html calling it:

     

     

     

    My form code in the HTML file:

     

    <form action="contact.php" method="get"  enctype="multipart/form-data" id="form">
    
    My form goes here
    
    <a href="#" onClick="document.getElementById('form').submit()">
    <span class="style5"><input type="image" src="images/submit.jpg" /></span></a>
    
    </form>
    
    
    

     

  3. No, that's not working good, i'm getting error

     

    Warning: Cannot modify header information - headers already sent by (output started at /home/realife/domains//public_html/mavrikim/contact.php:2)

    in /home/realife/domains//public_html/mavrikim/contact.php on line 22

     

  4. Hey, I have my contact form in my website working fine

    I'm just asking a simple question because I don't know so much about php and php syntax

     

    I have my html file calling this code below when i'm clicking on the submit button

    Just take a look at the last line when there is the 'echo' script

    I want it to go to this link, and instead it's just writing the link

    what is the right command/code that should i use?

     

     

    <?
    $subject="from ".$_GET['fName'];
    $headers= "From: ".$_GET['fEmail']."\n";
    $headers.='Content-type: text/html; charset=UTF-8' . "\r\n";
    mail("mymail@example.com", $subject,  "
    <html>
    <head>
    <title> My Title </title>
    </head>
    <body>
    
    <br>
      ".$_GET['fName']. " <br>
      ".$_GET['fPhone']." <br>
      ".$_GET['fEmail']."  <br><br>
      ".$_GET['pBody']." 
    
    </body>
    </html>" , $headers);
    
    echo "http://avrikim123.co.cc/sent.html";
    ?>

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.