Jump to content

ident

Members
  • Posts

    37
  • Joined

  • Last visited

    Never

Everything posted by ident

  1. Hmm maybe it's something iv not set up then. I have my own email server that i use. But i have only just hosted my site to my server and then added this code. You mention a php.ini, but i have never write or seen one. is there something i must set up first on my server then?
  2. I did what you said. No errors displayed. Just displayed mail sent. I have my own email server
  3. <?php //add the header include('header.php'); //define the receiver of the email $to = 'sam@globular.org'; //define the subject of the email $subject = 'Test email'; //define the message to be sent. Each line should be separated with \n $message = "Hello World!\n\nThis is my first mail."; //define the headers we want passed. Note that they are separated with \r\n $headers = "From: myemail@mail.com\r\nReply-To: myemail@mail.com"; //send the email $mail_sent = @mail( $to, $subject, $message, $headers ); //if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" echo $mail_sent ? "<br /><center>Mail sent" : "Mail failed</center>"; ?> any one know why?
  4. Hi, yes i decided to do that. but i can only get the value of one check box(can do textfields fine. can any one see why only the top one works <?php if (isset($_POST['chkUpgrading'])) { echo 'upgrading or re-installing=True'; } if (isset($_POST['chknotWorking'])) { echo 'NotWorking=True'; } ?> HTML <td width="4%" valign="middle" align="right"> <input id="objDidNotWork0" type="checkbox" name="chkUpgrading" value="REINSTALLING"></td> <td valign="middle"> I am upgrading or re-installing. </td> </tr> <tr> <td width="4%" valign="middle" align="right"> <input id="objDidNotWork" type="checkbox" name="chknotWorking" value="DIDNOTWORK"></td> i have the name right :'(
  5. any one suggest one? all i need is for it to get the values of a few checkboxes and textarea then email me it.
  6. I only started messing with php last night so no next to nothing echo '<img src="'$pic' "width="150" height="150" /><br />'; I'm displaying a random image Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /var/www/simplecoders.com/htdocs/Upload.php on line 80
  7. I have ten web pages and i reuse the same header on each one. If i m ake a change i have to edit them all. The only languages i know are html,vbscript,vb.net and asp.net(failry ok) but i am on windows xp home, so cannot make a control for this is there any other solution u guys got?>
  8. Hi, this is going to be hard sinc ei have never used php, but can code in html,vb.net,aspx.net and javascript i need a php script that can host an image to my site. and display it giving a link. like image shack does.
×
×
  • 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.