Jump to content

riwan

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

riwan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well, many people will always assume that when you submit your form the method is always 'POST' so address won't get messy, and many other things. You would see that second reply by kenrbnsn also assume that, for suggesting to print the output of $_POST array
  2. If the dbhost is the same as the script host, then you can just put it as localhost
  3. in 1 page only <form... > </form> <form... > </form> for the first form your action should be your intended submit page for the second form your action should be the page itself but contain only hidden value your user would not see the second form. Then onchange fill in your second form and then submit the second form
  4. <form action="selectday.php" method="get"> Its better to use method post in your form
  5. you should check again the host ip $link = mysql_connect(111.11.11.11.11:5002, myusername, mypassword); there should be only 3 dots in it and you should enclosed in quotes
  6. <select name="team_supported" size=1> <option>Manchester United <option>etc </select>
  7. you're not permitted to use form inside form must be like this : <form... > </form> <form... > </form>
  8. $headers="From: #####.co.uk <support@#####.co.uk>\n\r"; shouldn't you use below ? $headers="From: #####.co.uk <support@#####.co.uk>\r\n"; Other errors I noted is this $detail="<html><body><a href="">Some HTML email code</a></body></html>"; should be this $detail="<html><body><a href=\"\">Some HTML email code</a></body></html>";
  9. what exactly the error shown on the screen ?
  10. may I know why you do the query for table game ? you could just use query for this $query2 = "SELECT GameName,link FROM Movie WHERE GameName LIKE '%".$name."%'";
  11. didn't see your html code for this so not testing for it. anyway the above code should work, post again if you still have some trouble
  12. usually this would do header("location: loginsuccess.php"); but in your code it won't work because you're already outputting to the browser before sending header read here for more info http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  13. you didn't escape your quote in all 3 meta this would work <?php // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you // retain the credit link // get posted data into local variables $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "rob@vozmedia.co.uk"; $Subject = "Voz Media contact"; $name = Trim(stripslashes($_POST['name'])); $message = Trim(stripslashes($_POST['message'])); echo "x"; // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=www.vozmedia.co.uk\">"; exit; } // prepare email body text $Body = ""; $Body .= "name: "; $Body .= $name; $Body .= "\n"; $Body .= "message: "; $Body .= $message; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=www.vozmedia.co.uk/contactsucess.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=www.vozmedia.co.uk/contactfailure.html\">"; } ?>
  14. read this first http://www.phpfreaks.com/forums/index.php/topic,299600.0.html
  15. try this <?php $myFile = "testFile.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = "<?php \n\n \$your_page_title = \"$_POST[your_page_title]\";\n \$your_number_color = \"$_POST[your_number_color]\";\n \$your_position_color = \"$_POST[your_position_color]\";\n \$your_name_size = \"$_POST[your_name_size]px\";\n \$your_stats_color = \"$_POST[your_stats_color]\";\n ?> "; fwrite($fh, $stringData); fclose($fh); ?>
×
×
  • 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.