View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multiple postings by one user

Thread began 6/02/2009 12:32 pm by roby258376 | Last modified 6/10/2009 8:41 pm by roby258376 | 3338 views | 27 replies

roby258376

It does specify the page, but still doesn't go there. Here's the code from the page:

$WA_connection = $cpca_members;
$WA_table = "job";
$WA_sessionName = "WADA_Insert_job";
$WA_redirectURL = "job_member_Detail.php";
$WA_keepQueryString = false;
$WA_indexField = "job_ID";
$WA_fieldNamesStr = "member_id|company|contact_name|contact_phone|contact_email|job_type|job_category|job_title|job_description";
$WA_fieldValuesStr = "".$_SESSION['MM_UserID'] ."" . "|" . "".((isset($_POST["company"]))?$_POST["company"]:"") ."" . "|" . "".((isset($_POST["contact_name"]))?$_POST["contact_name"]:"") ."" . "|" . "".((isset($_POST["contact_phone"]))?$_POST["contact_phone"]:"") ."" . "|" . "".((isset($_POST["contact_email"]))?$_POST["contact_email"]:"") ."" . "|" . "".((isset($_POST["job_type"]))?$_POST["job_type"]:"") ."" . "|" . "".((isset($_POST["job_category"]))?$_POST["job_category"]:"") ."" . "|" . "".((isset($_POST["job_title"]))?$_POST["job_title"]:"") ."" . "|" . "".((isset($_POST["job_description"]))?$_POST["job_description"]:"") ."";
$WA_columnTypesStr = "none,none,NULL|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_cpca_members;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}



There are other wonky things as well. Delete requires you to hit the delete button twice, and when you do, it reloads the delete page, rather than redirecting to the results page again.

My head hurts!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...