Jump to content

croz27

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

croz27's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks Void! Legend. Have a good day!
  2. Hi, First of all thanks very much for your reply, any help is very appreciated as this is killing my brain! I took the location out and recieved no error and still no email... any other ideas? It seems to function properly and i thought it may be my gmail stopping it but i get no email even in the spam folder. Thanks, croz27 [attachment deleted by admin]
  3. anyone ?
  4. Hi Y'all I have a contact form page with a contact-handler.php for emailing the details to my email address. I have the site uploaded on the net for the php and submission of the message fields to work and it seems to submit the message fine (simple contact form... name, email and message) but i never receive the email of the users message?? I have searched this forum before i posted this and there was one message on this topic however i could not make sense of the reply.. guy typs lke this lnguage wit misn words? madness. Anyways i know a guy mentioned gmail and yahoo might be backlist but surely not for days? the email is not in my spam folder either.. heres the snippet of my code, massively appreciate any help. <?php $errors = ''; $myemail = '[email protected]'; if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['message'])) { $errors .= "\n Error: all fields are required"; } $name = $_POST['name']; $email_address = $_POST['email']; $message = $_POST['message']; if (!eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email_address)) { $errors .= "\n Error: Invalid email address"; } if( empty($errors)) { $to = $myemail; $email_subject = "Contact form submission: $name"; $email_body = "You have received a new message. ". " Here are the details:\n Name: $name \n Email: $email_address \n Message \n $message"; $headers = "From: $myemail"; $headers .= "Reply-To: $email_address"; mail($to,$email_subject,$email_body,$headers); //redirect to the 'thank you' page header('Location: contact-form-thank-you.html'); } ?> Thanks for any input. ps. I have left in my real email address incase gmail has any conflicts with this ... croz27
  5. that worked a treat, thanks for your help.
  6. Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
  7. just trying to refresh my blog after a user has submitted a review... if ($reviewText == true) { echo "<meta http-equiv='refresh' content=0;url=videoinfo.php?videoNUM=$_GET['videoNUM']"; } Anyone know whats wrong with this? i think its how i have ended the ['videoNUM']"; as im not sure where to put the > in also.... videoNUM has been defined i think its how i structured it thats the problem but i cant work this small problem out... anyone? many thanks.
  8. i have my code commented just not sure how to write it at this point, any examples? IF (there is text within the form field) UPDATE record and refresh hello.php ELSE return back to hello.php if there is no text and the submit button is pressed.. would appreciate any comments, seem to have hit a wall with this database drive site
  9. I have another problem if you are still about with your expertise... my form action is... echo "<form action=\"hello.php?helloNUM=<?php echo $_REQUEST['helloNUM'];?>\" method=\"get\""; this directs it back to the original hello.php page displaying the category in which helloNUM has been selected however how would i echo the text inputted into my form and refresh the hello.php once the submission button has been hit? many thanks.
  10. sometimes when you have been looking at code all day you miss the easiest mistakes like echo'ing your results. )
  11. Hi, Im having problems displaying the results of this sql query in my php page... heres what i have so far.. $sqlreviews = mysql_query("SELECT reviewText, reviewDate FROM nbc_bookreview WHERE bookISBN='".$_GET['bookISBN']."' ORDER BY reviewDate"); while($row = mysql_fetch_array($sqlreviews)) { echo $sqlreviews; ... I dont get any errors it just pops up resourceID etc' so im convinced it works, just displaying it wrong maybe? any ideas? merci
×
×
  • 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.