html - 'Submit' button redirects to home page without submitting form (php error, perhaps) -


shortly after setting first wordpress website (i've been forums no luck), noticed error "contact us" page (http://www.therealironworks.org/contact-us/). when first created page, supposed give errors if user didn't fill out form correctly. instead, when user clicks "submit" button, redirects home page without alerting user , without submitting information, if form filled out correctly.

i decided rebuild website re-uploading base files had computer, when checked make sure working correctly, version on pc doing same thing (i'm using mamp windows emulate server). i'm wondering if maybe never did work correctly, in case wouldn't wordpress problem, php coding error on part. however, i'm puzzled page still loads , should, part button clicked.

the page in 2 parts, actual meat of php being in "content-" template part file. i'm not sure if should upload both files here, bit long, if needed. or ideas appreciated!

if ($_post ['$variable'] ="" || !preg_match... { $error = "string"; }  if ($_post ['$variable2'] ="" || !preg_match... { $error .= "string"; }  if ($_post [$'variable3'] ="" || !preg_match... { $error .= "string"; }  if (!$_post ['$email'] ="" { $error .= "string"; }  if ($_post ['$email'] != "" , !filter_var($_post['$email'], filter_validate_email)) { $error .= "string"; }  if ($_post [$'variable4'] ="" { $error .= "string"; } //for message  if ($error) { $result = '<div ...> '.$error.' </div>';} 


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -