'.$value.'`) contains text portions that are potentially harmful to this server. Your input has not been sent! Please use your browser\'s `back`-button to return to the previous page and try rephrasing your input.

' ); } } } function process_post_field($name, $error_name) { global $fields; global $error_report; if (!empty($_POST[$name])) { $fields[$name] = stripslashes($_POST[$name]); input_check_mailinj($fields[$name]); } else { $fields[$name] = FALSE; if (isset($error_name)) { $error_report .= $error_name; } } } // process post variables and check for required fields, contagnate errors and calculate payment totals. $hidden = ''; $error_report = ''; process_post_field('title', '

Please enter your title.

'); process_post_field('fn', '

Please enter your first name.

'); process_post_field('ln', '

Please enter your surname.

'); process_post_field('org', ''); process_post_field('pos', ''); process_post_field('add1', '

Please enter your address.

'); process_post_field('add2', ''); process_post_field('add3', ''); process_post_field('suburb', '

Please enter your suburb.

'); process_post_field('state', ''); process_post_field('country', ''); process_post_field('postcode', ''); process_post_field('phone', ''); process_post_field('mobile', ''); process_post_field('fax', ''); process_post_field('email', '

Please enter your email address.

'); process_post_field('poster', '

Please tell us whether you will be presenting a poster.

'); process_post_field('post_title', ''); process_post_field('fieldTrip', '

Please tell us whether you would be interested in attending the field trip.

'); // validate code. switch ($_POST['code']) { case 1: $code = 'aeg34'; break; case 2: $code = 'ies4g'; break; case 3: $code = 'tsif81'; break; case 4: $code = 'kogs5'; break; case 5: $code = 'mesg2'; break; } if ($_POST['code_value'] != $code) { $error_report = '

The enter the code above the submit button to continue. This is to prevent automated submissions.

'; } if ($error_report != '') { // if more than 4 errors don't bother telling them what they are. if (substr_count($error_report, '

') > 4) { $message = '

Please ensure you have filled in the form correctly and try again.

'; } else { // report errors. $message = '

Errors Occurred. Please see details below.

' . $error_report . '


'; } } else { // insert to personal_conf table. $ip = $_SERVER['REMOTE_ADDR']; $date = time(); $query = "INSERT INTO eoi (title, fn, ln, org, pos, address, address2, address3, suburb, state, country, postcode, phone, mobile, fax, email, presentation, pres_title, ip, sub_date) VALUES ('{$fields['title']}', '{$fields['fn']}', '{$fields['ln']}', '{$fields['org']}', '{$fields['pos']}', '{$fields['add1']}', '{$fields['add2']}', '{$fields['add3']}', '{$fields['suburb']}', '{$fields['state']}', '{$fields['country']}', '{$fields['postcode']}', '{$fields['phone']}', '{$fields['mobile']}', '{$fields['fax']}', '{$fields['email']}', '{$fields['presentation']}', '{$fields['pres_title']}', '$ip', '$date')"; // echo $query; $result = mysql_query($query); $conf_abstract_id = mysql_insert_id(); $body = ' EOI

The following expression of interest has just been submitted

Surname: '.$fields['ln']."

Title: " . $fields['title'] . "

First name: ".$fields['fn']."

Organisation: " . $fields['org'] . "

Position: " . $fields['pos'] . "

Address 1: " . $fields['add1'] . "

Address 2: " . $fields['add2'] . "

Address 3: " . $fields['add3'] . "

Suburb: " . $fields['suburb'] . "

State: " . $fields['state'] . "

Postcode: " . $fields['postcode'] . "

Country: " . $fields['country'] . "

Phone: " . $fields['phone'] . "

Mobile: " . $fields['mobile'] . "

Fax: " . $fields['fax'] . "

Email: " . $fields['email'] . "

"; $body .= "

Poster: " . $fields['poster'] . "

"; if ($fields['poster'] == 'Yes') { $body .= "

Poster Title: " . $fields['post_title'] . "

"; } $body .= "

Field Trip: " . $fields['fieldTrip'] . "

"; $body .=" "; require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = $fields['email']; $mail->FromName = $fields['fn'].' '.$fields['ln']; $mail->AddAddress("sally.brown@sallybcc.com.au", "Sally Brown"); $mail->AddAddress("tristan@decompression.com.au"); $mail->AddReplyTo($fields['email'], $fields['fn'].' '.$fields['ln']); $mail->WordWrap = 50; // set word wrap $mail->IsHTML(true); // send as HTML $mail->Subject = "ASDS7 EOI"; $mail->Body = $body; $mail->AltBody = strip_tags($body); if(!$mail->Send()) { echo "Message could not be sent

"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } $message = '

Thank you

Your expressin of interest for the 7th Australasian Soilborne Diseases Symposium has been successfully submitted.

'; } } function check_url($url) { $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL,$url ); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch,CURLOPT_VERBOSE,false); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $page=curl_exec($ch); return $page; } $incomingHtml = check_url('http://www.asds7.org'); $headTags = ' '; $output = substr($incomingHtml,0,strpos($incomingHtml, '')); $output = str_replace("", $headTags, $output); echo $output; echo '
'; if (isset($_POST['submitted'])) { echo $message; } else { echo '

Expression of Interest

If you are interested in participating in the 7th Australasian Soilborne Diseases Symposium, please complete the Expression of Interest Form below. Your information will be sent via email to the Conference Secretariat.

The FIELD EXCURSION will depart from the Symposium venue at 1:00 pm on Thursday 20th September immediately following the closing session and will return to the Perth Airport at 5:00 pm and central Perth at 5:45 pm on Friday 21st. This excursion will visit agricultural, horticultural and natural ecosystems sites of relevance to Symposium themes. The excursion includes an overnight stay at New Norcia and will require payment of an additional registration fee.

The form below has a \'submit\' link to sally.brown@sallybcc.com.au. Should you have difficulty for some technical reasons, kindly copy and paste the following information into your email and send to the conference manager, sally.brown@sallybcc.com.au.

Title: [req]
First Name: [req]
Surname: [req]
Organisation:
Position:
Address Line 1: [req]
Address Line 2:
Address Line 3:
Suburb/Town: [req]
State:
Country:
Postcode:
Telephone (work): [req]
Facsimile:
Mobile:
Email: [req]
I would be interested in presenting a poster
Yes No      [req]
If yes, please state title of proposed poster:
I would be interested in participating in the field excursion
Yes No      [req]
 
'; // set the code. $code = rand(1,5); echo ''; echo ''; echo '
Enter the code above:
'; } echo '  
'; ?>