Insert to ms access wont work
i have jsp page whice i insert data into ms access.
but nothing work. no new data inserted to table
this is the code:
<%@ page language="java"%>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.sql.*" %>
<%
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
String question=request.getParameter("question");
String answer1=request.getParameter("answer1");
String answer2=request.getParameter("answer2");
String answer3=request.getParameter("answer3");
int correct=Integer.parseInt(request.getParameter("correct"));
if (!question.equals("") && !answer1.equals("") && !answer2.equals("") && !answer3.equals(""))
String queryText = "insert into quest values('"+question+"','"+answer1+"','"+answer2+"','"+answer3+"','"+correct+"')";
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:Trivioner", "", "");
stmt = con.createStatement();
rs = stmt.executeUpdate(queryText);
stmt.close();
con.commit();
con.close();
} catch (Exception e) {out.println("Database error!!");}
%>
thank for your help
print out the stacktrace and post the exception
Similar Messages
-
Guided access wont work ios 8-ipod touch 5
when ever i triple click the home button and tap guided access, it doesnt do anything, the menu just goes away, its enabled in settings and it worked in ios 7 just fine.
You can try the standard fixes:
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Unsync/delete all music and resync
To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device.
That problem has not been reported here before so I do not know if it is a bug in the update -
hp photosmart 3210 xi said non hp cartridgfe. Said to replace new hp cartridge when one had been inserted. Wont work!
Remove both cartridges
Set the cartridges aside and close the access door
Unplug the printer
Plug the printer back in
Wait until it tells you the cartridges are missing
Insert cartridges
Close door.
Hope this helps
Trained on Mac and Windows for inkjet printers.
**Although I work for HP, I do not represent them in these forums**
If I've resolved your issue please mark as Accepted Solution so others can use my advice! ^.^ -
My iWeb Account wont update it says Can’t create the file “mwmac_white.png.” The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend I deleted other sources on website and still wont work? Suggestions?
Welcome to Apple Support Communities.
This is the image contained in the file causing the problem...
I certain the original is contained in the Combo updates and on the OS disks.
As a temporary fix, click on the image above to open it.
Use Screen capture (Shift+Command+4) and click on the opposite corners of the image.
It will be saved as a Screen shot 2011-mm-dd at hh:mm.png
Right click on the filename in Finder and rename it to mwmac_white.png
I'm not certain, but the file might need to be moved into the Documents directory in the Subdirectory named for the website name you are editing. That's where it is on my system, but I moved a bunch of files when I restored from Time Machine about 18 months ago.
I also have many copies of mwmac.png, a separate copy one for each web page where the image appears in my website. -
Updated my 4s and ipad3 and now both are basically useless. Cant access itunes store, app store, weather app wont work and multiple bugs with facebook. How am I supposed to fix all these problems????
Hi Doomtrooper,
When you updated your iPhone 4S and iPad3 to iOS6, what exactly do you mean when you can't access the iTunes store? Have you checked your connection to the network?
Please be a little more specific -
My voiceover wont work anymore it has a yellow triangle on it now
my voiceover wont work anymore it has a yellow triangle on it now can anyone help me
Hi and Welcome to the Community!
Please try this sequence...note that, throughout the entire 4h15m process, your BB must remain connected to a known-good wall charger (not PC USB):
With the battery inside, connect your BB to the wall charger
Leave it alone for 2 hours, no matter what the LED or the display does
Remove the battery
Wait 15 minutes
Insert the battery
Wait another 2 hours, no matter what the LED or the display does
This has been known to "kick start" some BBs.
It is also possible that your battery or BB has experienced a problem...to test, this sequence is needed:
Obtain a known good and already fully charged additional battery...use it in your BB and see what happens
Obtain access to a known good and identical BB...use your battery in it and see what happens
The results of this will indicate if it's your BB or your battery that has the problem.
It is also completely possible that the impact has caused physical damage.
Good luck and let us know!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Mail-form from dB Masters + reCaptcha - Things wont work the way i want.
I used a mail-form from dB Masters because someone here gave me the tip.
And its great! But it uses a simplefied Captcha script.
I tryd to change the code myself and got to this: http://www.wientjesvoegwerk.nl/PHP/form.php
If you try to send mail it wont work.....
form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Email Form</title>
</head>
<body>
<center>
<form id="form" method="post" action="../formmailer.php" enctype="multipart/form-data">
<input type="hidden" name="action" value="verify">
<table cellpadding="4">
<tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Uw naam:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Naam" value=""/>
</td></tr>
<tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Email" value="" />
</td></tr>
<tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Telefoonnummer:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<input type="text" name="Telefoonnummer" value="" />
</td></tr>
<tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Onderwerp:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<select name="Onderwerp">
<option value="0">Algemene Informatie</option>
<option value="1">Offerte</option>
<option value="2">Overige</option>
</select>
</td></tr>
<tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Bericht:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
<textarea name="Bericht" rows="7" cols="40"></textarea>
</td></tr>
<tr><td align=right>CAPTCHA TXT</td>
<td align="left">
<form method="post" action="verify.php">
<?php
require_once('recaptchalib.php');
$publickey = "I hide the key on this forum dont know if its ok to show";
echo recaptcha_get_html($publickey);
?>
</form>
</td>
</tr>
<tr><td></td><td align="left">
<input type="submit" name="submit" value="Submit" />
<input type="reset" name="Reset" value="Clear Form" />
<input type="hidden" name="config" value="0" />
<input type="hidden" name="nospam" value="" />
</td></tr>
</table>
<div style="height:1px; display: none; visibility: hidden;">
<input type="text" name="email">
</div>
</form>
</center>
</body>
</html>
formmailer.php
<?php
// dB Masters' PHP FormM@iler, Copyright (c) 2007 dB Masters Multimedia
// http://www.dbmasters.net/
// FormMailer comes with ABSOLUTELY NO WARRANTY
// Licensed under the AGPL
// See license.txt and readme.txt for details
// General Variables
$check_referrer="no";
$referring_domains="www.wientjesvoegwerk.nl";
// options to use if hidden field "config" has a value of 0
// recipient info
$charset[0]="UTF-8";
$tomail[0]="[email protected]";
$cc_tomail[0]="";
$bcc_tomail[0]="";
// Mail contents config
$subject[0]="Onderwerp van de Email";
$reply_to_field[0]="Email";
$reply_to_name[0]="Naam";
$required_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
$required_email_fields[0]="Email";
$attachment_fields[0]="";
$return_ip[0]="yes";
$mail_intro[0]="Er is een bericht gestuurd vanuit Wientjesvoegwerk.nl:";
$mail_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
$mail_type[0]="text";
$mail_priority[0]="1";
$allow_html[0]="no";
// Send back to sender config
$send_copy[0]="yes";
$copy_format[0]="vert_table";
$copy_fields[0]="Naam,Onderwerp,Bericht";
$copy_attachment_fields[0]="";
$copy_subject[0]="Kopie van uw bericht naar Wientjesvoegwerk.nl";
$copy_intro[0]="Dank u voor uw bericht!<br />Om veiligheidsredenen is uw email adres en telefoonnummer niet in deze mail te zien.<br /> Het volgende is verstuurd;";
$copy_from[0]="[email protected]";
$copy_tomail_field[0]="Email";
// Result options
$header[0]="";
$footer[0]="";
$error_page[0]="";
$thanks_page[0]="";
// Default Error and Success Page Variables
$error_page_title[0]="Errors:";
$error_page_text[0]="Ga a.u.b. terug naar de vorige pagina om alle benodigde velden in te vullen.";
$thanks_page_title[0]="Bericht verzonden.";
$thanks_page_text[0]="Dank u voor uw bericht!";
// Antispam Options
$empty_field[0]="nospam";
$character_scan[0]="Bericht,Naam,Email,Telefoonnummer,Onderwerp";
$time_delay[0]="2";
$captcha_codes[0]="9C2449,EEADC8,77A585,D72838";
$max_urls[0]="2";
$max_url_fields[0]="Bericht";
$flag_spam[0]="";
// options to use if hidden field "config" has a value of 1
// recipient info
$charset[1]="";
$tomail[1]="";
$cc_tomail[1]="";
$bcc_tomail[1]="";
// Mail contents config
$subject[1]="";
$reply_to_field[1]="";
$reply_to_name[1]="";
$required_fields[1]="";
$required_email_fields[1]="";
$attachment_fields[1]="";
$return_ip[1]="";
$mail_intro[1]="";
$mail_fields[1]="";
$mail_type[1]="";
$mail_priority[1]="";
$allow_html[1]="";
// Send back to sender config
$send_copy[1]="";
$copy_format[1]="";
$copy_fields[1]="";
$copy_attachment_fields[1]="";
$copy_subject[1]="";
$copy_intro[1]="";
$copy_from[1]="";
$copy_tomail_field[1]="";
// Result options
$header[1]="";
$footer[1]="";
$error_page[1]="";
$thanks_page[1]="";
// Default Error and Success Page Variables
$error_page_title[1]="";
$error_page_text[1]="";
$thanks_page_title[1]="";
$thanks_page_text[1]="";
// Antispam Options
$empty_field[1]="bait";
$character_scan[1]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
$time_delay[1]="";
$captcha_codes[1]="";
$max_urls[1]="";
$max_url_fields[1]="";
$flag_spam[1]="";
// Don't muck around past this line unless you know what you are doing //
ob_start();
$config=$_POST["config"];
$debug=0;
$debug_text="";
// fix for Windows email server security
ini_set("sendmail_from",$tomail[$config]);
// email validation regular expression
$regex = "^[-a-z0-9!#$%&\'*+/=?^_`{|}~]+(\.[-a-z0-9!#$%&\'*+/=?^_`{|}~]+)*@(([a-z0-9]([-a-z0-9]*[a-z0-9]+)?){1,63}\.)+([a-z]([-a-z0-9]*[a-z0-9]+)?){2,63}$";
$header_injection_regex = "(\r|\n)";
if($header[$config]!="")
include($header[$config]);
if($_POST["submit"] || $_POST["Submit"] || $_POST["submit_x"] || $_POST["Submit_x"])
// begin global functions //
// get visitor IP
function getIP()
if(getenv(HTTP_X_FORWARDED_FOR))
$user_ip=getenv("HTTP_X_FORWARDED_FOR");
else
$user_ip=getenv("REMOTE_ADDR");
return $user_ip;
// get value of given key
function parseArray($key)
$arrayvalue=$_POST[$key];
$count=1;
extract($array_value);
foreach($array_value as $part_value)
if($count > 1){$value.=", ";}
$value.=$part_value;
$count=$count+1;
return $value;
// stripslashes and autolink url's
function parseValue($value)
$value=preg_replace("/(http:\/\/+.[^\s]+)/i",'<a href="\\1">\\1</a>', $value);
return $value;
// html header if used
function htmlHeader()
$htmlHeader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$charset[$config]."\"></head>\n<body>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"600\">\n";
return $htmlHeader;
// html footer if used
function htmlFooter()
$htmlFooter="</table>\n</body>\n</html>\n";
return $htmlFooter;
// build verticle table format
function buildVertTable($fields, $intro, $to, $send_ip)
$message=htmlHeader();
if($intro != "")
$message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"2\">".$intro."</td>\n</tr>\n";
$fields_check=preg_split('/,/',$fields);
$run=sizeof($fields_check);
for($i=0;$i<$run;$i++)
$cur_key=$fields_check[$i];
$curvalue=$_POST[$cur_key];
if(is_array($cur_value))
$curvalue=parseArray($cur_key);
$curvalue=parseValue($cur_value);
if($allow_html[$config]=="no")
$curvalue=htmlspecialchars(nl2br($cur_value));
else
$curvalue=nl2br($cur_value);
$message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$cur_value."</td>\n</tr>\n";
if($send_ip=="yes" && $to=="recipient")
$user_ip=getIP();
$message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$user_ip."</td>\n</tr>\n";
$message.=htmlFooter();
return $message;
// build horizontal table format
function buildHorzTable($fields, $intro, $to, $send_ip)
$message=htmlHeader();
$fields_check=preg_split('/,/',$fields);
$run=sizeof($fields_check);
if($intro != "")
$message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"".$run."\">".$intro."</td>\n</tr>\n";
$message.="<tr>\n";
for($i=0;$i<$run;$i++)
$cur_key=$fields_check[$i];
$message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n";
if($send_ip=="yes" && $to=="recipient")
$message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n";
$message.="</tr>\n";
$message.="<tr>\n";
for($i=0;$i<$run;$i++)
$cur_key=$fields_check[$i];
$curvalue=$_POST[$cur_key];
if(is_array($cur_value))
$curvalue=parseArray($cur_key);
$curvalue=parseValue($cur_value);
if($allow_html[$config]=="no")
$curvalue=htmlspecialchars(nl2br($cur_value));
else
$curvalue=nl2br($cur_value);
$message.="<td align=\"left\" valign=\"top\">".$cur_value."</td>\n";
$message.="</tr>\n";
$message.="<tr>\n";
if($send_ip=="yes" && $to=="recipient")
$user_ip=getIP();
$message.="<td align=\"left\" valign=\"top\">".$user_ip."</td>\n";
$message.="</tr>\n";
$message.=htmlFooter();
return $message;
// build plain text format
function buildTextTable($fields, $intro, $to, $send_ip)
$message="";
if($intro != "")
$message.=$intro."\n\n";
$fields_check=preg_split('/,/',$fields);
$run=sizeof($fields_check);
for($i=0;$i<$run;$i++)
$cur_key=$fields_check[$i];
$curvalue=$_POST[$cur_key];
if(is_array($cur_value))
$curvalue=parseArray($cur_key);
$curvalue=parseValue($cur_value);
if($allow_html[$config]=="no")
$curvalue=htmlspecialchars($cur_value);
else
$curvalue=$cur_value;
$message.="".$cur_key.": ".$cur_value."\n";
if($send_ip=="yes" && $to=="recipient")
$user_ip=getIP();
$message.="Sender IP: ".$user_ip."\n";
return $message;
// get the proper build fonction
function buildTable($format, $fields, $intro, $to, $send_ip)
if($format=="vert_table")
$message=buildVertTable($fields, $intro, $to, $send_ip);
else if($format=="horz_table")
$message=buildHorzTable($fields, $intro, $to, $send_ip);
else
$message=buildTextTable($fields, $intro, $to, $send_ip);
return $message;
// referrer checking security option
function checkReferer()
if($check_referrer=="yes")
$ref_check=preg_split('/,/',$referring_domains);
$ref_run=sizeof($ref_check);
$referer=$_SERVER['HTTP_REFERER'];
$domain_chk="no";
for($i=0;$i<$ref_run;$i++)
$cur_domain=$ref_check[$i];
if(stristr($referer,$cur_domain)){$domain_chk="yes";}
else
$domain_chk="yes";
return $domain_chk;
// checking required fields and email fields
function checkFields($text_fields, $email_fields, $regex)
$error_message="";
if($debug==1)
$error_message.="<li>text_fields: ".$text_fields."<br />email_fields: ".$email_fields."<br />reply_to_field: ".$reply_to_field."<br />reply_to_name: ".reply_to_name."</li>";
if($text_fields != "")
$req_check=preg_split('/,/',$text_fields);
$req_run=sizeof($req_check);
for($i=0;$i<$req_run;$i++)
$cur_field_name=$req_check[$i];
$cur_field=$_POST[$cur_field_name];
if($cur_field=="")
$error_message.="<li>You are missing the <b>".$req_check[$i]."</b> field</li>\n";
if($email_fields != "")
$email_check=preg_split('/,/',$email_fields);
$email_run=sizeof($email_check);
for($i=0;$i<$email_run;$i++)
$cur_email_name=$email_check[$i];
$cur_email=$_POST[$cur_email_name];
if($cur_email=="" || !eregi($regex, $cur_email))
$error_message.="<li>You are missing the <b>".$email_check[$i]."</b> field or it is not a valid email address.</li>\n";
return $error_message;
// attachment function
function getAttachments($attachment_fields, $message, $content_type, $border)
$att_message="This is a multi-part message in MIME format.\r\n";
$att_message.="--{$border}\r\n";
$att_message.=$content_type."\r\n";
$att_message.="Content-Transfer-Encoding: 7bit\r\n\r\n";
$att_message.=$message."\r\n\r\n";
$att_check=preg_split('/,/',$attachment_fields);
$att_run=sizeof($att_check);
for($i=0;$i<$att_run;$i++)
$fileatt=$_FILES[$att_check[$i]]['tmp_name'];
$fileatt_name=$_FILES[$att_check[$i]]['name'];
$fileatt_type=$_FILES[$att_check[$i]]['type'];
if (is_uploaded_file($fileatt))
$file=fopen($fileatt,'rb');
$data=fread($file,filesize($fileatt));
fclose($file);
$data=chunk_split(base64_encode($data));
$att_message.="--{$border}\n";
$att_message.="Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\r\n";
$att_message.="Content-Disposition: attachment; filename=\"{$fileatt_name}\"\r\n";
$att_message.="Content-Transfer-Encoding: base64\r\n\r\n".$data."\r\n\r\n";
$att_message.="--{$border}--\n";
return $att_message;
// function to set content type
function contentType($charset, $format)
if($format=="vert_table")
$content_type="Content-type: text/html; charset=".$charset."\r\n";
else if($format=="horz_table")
$content_type="Content-type: text/html; charset=".$charset."\r\n";
else
$content_type="Content-type: text/plain; charset=".$charset."\r\n";
return $content_type;
// end global functions //
// begin procedural scripting //
// anti-spam empty field check
if($_POST[$empty_field[$config]] != "")
$empty_message = "<li>This submission failed and was flagged as spam.</li>\n";
// anti-spam character scan check
if(strlen($character_scan[$config]) > 0)
$spam_message="";
$field_check=preg_split('/,/',$character_scan[$config]);
$field_run=sizeof($field_check);
for($i=0;$i<$field_run;$i++)
$cur_field_name=$field_check[$i];
$cur_field=$_POST[$cur_field_name];
if(preg_match("/<(.|\n)+?>/", $cur_field) || preg_match("/\[(.|\n)+?\]/", $cur_field))
$spam_message.="<li>This message contains disallowed characters.</li>\n";
// anti-spam time delay check
if((strlen($time_delay[$config]) > 0 && strlen($_POST["time"]) > 0) || (strlen($time_delay[$config]) > 0 && (strlen($_POST["time"]) == 0 || !$_POST["time"])))
if((time() - $_POST["time"]) < $time_delay[$config])
$time_message = "<li>This has been stopped by the timer, and is likely spam.</li>\n";
// anti-spam CAPTCHA check
if(strlen($captcha_codes[$config]) > 0)
$captcha_check=preg_split('/,/',$captcha_codes[$config]);
if(strtolower($_POST["captcha_entry"]) != strtolower($captcha_check[$_POST["captcha_code"]]))
$captcha_message = "<li>CAPTCHA test did not match.</li>\n";
// anti-spam max URL check
if(strlen($max_url_fields[$config]) > 0)
$max_url_message="";
$field_check=preg_split('/,/',$max_url_fields[$config]);
$field_run=sizeof($field_check);
for($i=0;$i<$field_run;$i++)
$cur_field_name=$field_check[$i];
$cur_field=$_POST[$cur_field_name];
preg_match_all("/http:/", $cur_field, $matches);
if(count($matches[0]) > $max_urls[$config])
$max_url_message.="<li>This message contains too many URL's.</li>\n";
// set anti-spam flagging option
if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) == 0)
$set_flag = 2;
else if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) > 0)
$set_flag = 1;
else
$set_flag = 0;
// header injection check
$security_filter="";
if(strlen($_POST[$reply_to_field[$config]]) > 0)
if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
$security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
else
$reply_to_field_checked=$_POST[$reply_to_field[$config]];
if(strlen($_POST[$reply_to_name[$config]]) > 0)
if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
$security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
else
$reply_to_name_checked=$_POST[$reply_to_name[$config]];
// check domain referrer and continue
$domain_chk=checkReferer();
if($domain_chk=="yes")
$error_message=checkFields($required_fields[$config], $required_email_fields[$config], $regex);
if(strlen($error_message) < 1 && strlen($security_filter) < 1 && $set_flag < 2)
// build appropriate message format for recipient
$content_type=contentType($charset[$config], $mail_type[$config]);
$message=buildTable($mail_type[$config], $mail_fields[$config], $mail_intro[$config], "recipient", $return_ip[$config]);
// build header data for recipient message
//$extra="From: ".$_POST[$reply_to_field[$config]]."\r\n";
$extra="From: ".$reply_to_name_checked." <".$reply_to_field_checked.">\r\n";
if($cc_tomail[$config]!="")
$extra.="Cc: ".$cc_tomail[$config]."\r\n";
if($bcc_tomail[$config]!="")
$extra.="Bcc: ".$bcc_tomail[$config]."\r\n";
if($mail_priority[$config]!="")
$extra.="X-Priority: ".$mail_priority[$config]."\r\n";
// get attachments if necessary
if($attachment_fields[$config]!="")
$semi_rand=md5(time());
$border="==Multipart_Boundary_x{$semi_rand}x";
$extra.="MIME-Version: 1.0\r\n";
$extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
$message=getAttachments($attachment_fields[$config], $message, $content_type, $border);
else
$extra.="MIME-Version: 1.0\r\n".$content_type;
// send recipient email
if($debug==1)
if($set_flag == 1)
$debug_text.="<p><b>Mail would have sent flagged for spam if not in debug mode.</b></p>";
else
$debug_text.="<p><b>Mail would have sent if not in debug mode.</b></p>";
else if($debug==0)
if($set_flag == 1)
$subject = $flag_spam[$config]." ".$subject[$config];
else
$subject = $subject[$config];
mail("".$tomail[$config]."", "".stripslashes($subject)."", "".stripslashes($message)."", "".$extra."");
// autoresponse email if necessary
if($send_copy[$config]=="yes")
// build appropriate message format for autoresponse
$content_type=contentType($charset[$config], $copy_format[$config]);
$message=buildTable($copy_format[$config], $copy_fields[$config], $copy_intro[$config], "autoresponder", $return_ip[$config]);
// build header data for autoresponse
$copy_tomail=$_POST[$copy_tomail_field[$config]];
$copy_extra="From: ".$copy_from[$config]."\r\n";
// get autoresponse attachments if necessary
if($copy_attachment_fields[$config]!="")
$semi_rand=md5(time());
$border="==Multipart_Boundary_x{$semi_rand}x";
$copy_extra.="MIME-Version: 1.0\r\n";
$copy_extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
$message=getAttachments($copy_attachment_fields[$config], $message, $content_type, $border);
else
$copy_extra.="MIME-Version: 1.0\r\n".$content_type;
// send autoresponse email
if($debug==1)
if($set_flag == 1)
$debug_text.="<p><b>Autoresponder would have sent flagged for spam if not in debug mode.</b></p>";
else
$debug_text.="<p><b>Autoresponder would have sent if not in debug mode.</b></p>";
else if($debug==0)
$send_copy = 1;
if($copy_tomail=="" || !eregi($regex,$copy_tomail))
$send_copy = 0;
if($send_copy == 1)
if($set_flag == 1)
$copy_subject = $flag_spam[$config]." ".$copy_subject[$config];
else
$copy_subject = $copy_subject[$config];
mail("$copy_tomail", "".$copy_subject."", "$message", "$copy_extra");
// showing thanks pages from a successful submission
if($thanks_page[$config]=="")
echo "<h3>".$thanks_page_title[$config]."</h3>\n";
echo "<p>".$thanks_page_text[$config]."</p>\n";
if(strlen($debug_text) > 0)
echo "<p><b><i>".$debug_text."</i></b></p>\n";
else
header("Location: ".$thanks_page[$config]);
else
// entering error page options from missing required fields
if($error_page[$config]=="")
echo "<h3>".$error_page_title[$config]."</h3>\n";
echo "<ul>\n";
echo $security_filter.$empty_message.$error_message.$spam_message.$time_message.$captcha_message.$max_url_message;
echo "</ul>\n";
echo "<p>".$error_page_text[$config]."</p>\n";
else
header("Location: ".$error_page[$config]);
else
echo "<h3>".$error_page_title[$config]."</h3>\n";
// message if unauthorized domain trigger from referer checking option
echo "<p>Sorry, mailing request came from an unauthorized domain.</p>\n";
// end procedural scripting //
else
echo "<h3>Error</h3>";
echo "<p>No form data has been sent to the script</p>\n";
if($footer[$config]!="")
include($footer[$config]);
ob_end_flush();
?>
verify.php
<?php
require_once('recaptchalib.php');
$privatekey = "i hide this on the forum";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
?>
We have a saying in the Netherlands; "Not being abled to see the tree's trough the forest"
Well i dont see it anymore...
I managed to get it in the code but it doesnt work.
I hope someone can help me out!@Nancy O.
Thanks for your support i appreciate it that you helped me out a many times.
However i have read all of the topics you posted.
I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
I will re-make the form because like you said (and i already figured it out myself) ;
"b) Don't modify forms until you get a very basic form working on your server."
And youre right, im taking too much work at once.
@CowboyInAZ
Im a hobbyist that learns really really fast.
Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
If you look at my current site: http://www.wientjesvoegwerk.nl/
You will notice that the site is validated by W3C with no errors and warnings.
I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
I also want a education like you spoke of, but im interested in a different media.
I want to be abled to create my dream project wich involves new ways for game studios to earn money.
This is just a simple start, im also taking tutorials in C#, C++. -
I know my back up exists I can see it on disk utility but migration and disc utility wont work to restore my back up on my new hard drive it shows up with the message "this disk is already in use" i am so done. someone pls help me
Otherwise software may be attempted to access the drive. The the computer up in Safe Mode by holding shift when you turn it on. Also be sure to power off and on the hard drive itself.
-
Java has updated again today,
i use a java plug in to run my virtual software to access my work from home,
today i have an error message saying that security will not allow access to my website
i use to log in to work from, this is a JREdetection error,
my system runs off java and citrix, i tried chrome,firefox and safari - same issue, if my system cannot detect java it wont run, it runs on plug ins.
How to i change my sec settings to allow access to this website, as i can only see that i can add apps not web addresses?If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
iPhone and iPod touch: About backups -
I have windows 7 and EasyLink wont work neither will 192.168.1.1
I have windows 7 and EasyLink wont work. Now I tried the 192.168.1.1 and even that wont work! I have a WRT54GS and I know it works because when I usee the two laptops connected to it, it works perfectly except when too many users get on my wifi connection then it overloads
I'd suggest trying a factory reset, that should clear any password that was set and forgotten, as well as any settings that are preventing you from talking to it (like the router address having been set to something other than 192.168.1.1).
There's usually a recessed reset button on the back that is accessed via an "unrolled" paperclip. Just press that button and count to about 30, and then wait until the router comes up again and try the 192.168.1.1 address.
If you have a cable modem, then I'd suggest that you write down the MAC address of the primary computer that was used to configure the router, and then try changing the MAC address on the router to that when you get back in touch with it (via the 192.168.1.1 web GUI). The factory reset may change the router back to it's original MAC address, which may prevent your cable modem from being happy. -
Itunes wont work anymore...error 7
My itunes wont work anymore on my latop, i uninstalled it and reinstalled it but when i try to get in to my itunes and error 7 message will pop up saying that it was installed incorrectly and ive installed it several times to find the same thing happening. I dont know what to do anymore so if someone could help me out i would really appreciate it a lot!!!
I got an upgrade iTunes request from Apple. And upgraded. I should never have done that. Now it says that "iTunes is not properly installed". Other strange messages are also coming up, like missing .dll files etc.
I have deleted all Apple programs. Used Revo Uninstall that also deletes registry files and left over files. I have used ByeiTunes and Registry mechanic. I have used everything that is suggested on this site:
http://www.howtogeek.com/howto/23959/completely-remove-itunes-and-other-apple-so ftware-from-a-windows-computer/
After doing all this, I got the same error message. So what wrong with Apple? When you have bought the product, you are left out in the dark. I have given up. Synchronizing the calendar with Outlook I can do manually, pictures that I have downloaded to my phone, I can access directly, and pictures taken by the phone I have to send to myself through e-mail. Music I never download using iTunes.
I have had enough. After this and after Apple has changed the plug that leaves me with 8 useless chargers and stands, there will be Samsung next time. I'm running Windows 7, 64 bits.
Hans (Professor of Marketingy). I wonder if Apple is reading this? -
I have the iPod 5th gen. and my iPod wont connect to my wifi. I've tried everything. i rest my wifi networks and it still wont work. What do I do??
Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
Does the iOS device see the network?
Any error messages?
Do other devices now connect?
Did the iOS device connect before?
Try the following to rule out a software problem:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on your router
.- Reset network settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
- iOS: Recommended settings for Wi-Fi routers and access points
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar
For the future, saying you tried everything provides use with zero info as to what you did try. If you really tried everything then there is no way we could help -
inbuilt isight camera is detected in system profiler but no image is being detected only a black screen shows up. I have tried all of the troubleshooting instructions and it still wont work. The iMac im using is OS X 10.6 and was an ex-floor model
Hi,
I would try a Safe Boot first. (This will take longer than a normal Boot and you will need to Restart afterwards).
If it were an older OS I would also suggest going to System Preferences > Displays and making sure the display is set to Millions. (My MacBook Pro does not have this option in Snow Leopard so I did presume Snow Leopard does not have it).
With some laptops there have been some issues with the cable up the back of the screen pulling loose with regular and frequent use of the lid, but this will not apply to you based on your specs. (it does take time to appear and is also somewhat rare). However it seems enough contact with the camera can make it appear in System Profiler and power it on but not give a pic.
If a Safe Boot does not work I would also try a PRAM reset.
Shut down the computer.
Restart it holding down Apple/CMD (or ⌘)+ALT( ⌥)+P+R Keys until you have heard three Start Up Bongs.
This is actually "less" destructive in that it clears less memory items than Safe Boot but they are different enough to warrant trying.
Do you have an older version of iGlasses installed ?
The one for Leopard does not work for Snow Leopard.
Do you have Web Browser open ?
This may point to Google Video Chat Plug-in and Flash Conflict. It would be rare to allow another app to access the camera even if not displayiong a Pic.
(Chrome Installs the Plug-in as does the standalone download).
Knowing what "any application" exactly you are trying might help us pin it down.
Any additional downloaded apps that can use the camera ?
Do you happen to have something balck in front of the camera ?
8:20 PM Sunday; October 9, 2011
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb( 10.6.8)
Mac OS X (10.6.8),
"Limit the Logs to the Bits above Binary Images." No, Seriously -
Mac mini screen wont work after lion
My hdmi connection to my tv wont work after installing lion last night. It worked once last night but hasnt worked since. All cables are in tact and computer is set up the same. I cant even see anything to fix it!
I called apple - I'd have been in trouble if my mac had been my only internet access!
I had to reset the P-RAM
as so:
mac is powered off
turn on power then instantly press keys: command option P R
the mac will chime as usual then on the second chime let go of the keys.
After this my screen worked again.
For info - command key is cmd, option key is alt
I did this with an old mac wired keyboard - not sure if it will work on bluetooth keyboard, but it might. -
After updating to itunes 10.4 restarted my pc windows 7 64 bit, my ipod touch 3rd gen went into restore mode,when trying to restore it works for several minutes then says it cannot be restored, unexpected error occured (1604) I have followed the reslution checklists, still wont work, any thoughts?
Hi
Cannot offer any thoughts other then i am having the same problem. updated my itunes windows7 32bit ipod touch 4th gen. went into restore mode lost over 700 songs. i dont get any error messages i just cannot get into itunes store. Firewall is allowing access, etc resolution checklists done, and nothing.
Hopefully this issue is fixed up soon...
Maybe you are looking for
-
HT3500 can i connect my 1st gen ipad to my HP photosmart C4780
Can i connect my 1st gen ipad to my HP photosmart C4780
-
Why it gives an error , although the result is correct
Hello everybody, here is my code, which i wrote in another way, After th sucessful compiling it gives an error, but the results of execution is ok. What is wrong? import java.io.*; import java.lang.*; import java.util.*; import java.awt.*; public cla
-
Hi I have just upgraded from premiere elements 7 to 10 and the selection of disk menus in 10 is worse than 7, less choice and what is available is somewhat childish amd amaturish. Is there anywhere on the Adobe site to download additional disk menus
-
CAN NOT OPEN THE PULL DOWN TABS
every time im online trying to fill out an application or want to click for options the pull down tabs will not open
-
Eye Tv Hybrid, what speed needed
Here in sunny South Africa people avoid me in the street if I ask about Tv sticks !! Knowing extremely little, can someone help about the minimum download speed I would need for this Elgato product to be of any use here. I am with Telkom at 384Kbs. O