close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Looking for step by step tutorial.....

Thread began 12/15/2010 1:12 pm by tone397472 | Last modified 1/26/2011 4:50 pm by tone397472 | 4475 views | 37 replies


Is there a Record Insertion Form Wizard in Security or Data Assist or do I have to use the Dream Weaver one? To make that admin page with radio buttons?

I made a page with the record insertion form wizard from Dream Weaver to register the admin, but how do I get as a Admin after login on the main admin page I made with all links instead of the profile page where the normal users are being directed to?

Or do I have to make a link on the profile page where everybody ends up after login now with a link ADMINISTRATOR that can only be used with access permission for a admin to get on that page?

Hope this is what you are explaining:

<?php require_once('Connections/connlogregdb1.php'); ?>
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO users (userEmail, userPassword, userFirstname, userFamilyName, isAdmin) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['userEmail'], "text"),
GetSQLValueString($_POST['userPassword'], "text"),
GetSQLValueString($_POST['userFirstname'], "text"),
GetSQLValueString($_POST['userFamilyName'], "text"),
GetSQLValueString(isset($_POST['isAdmin']) ? "true" : "", "defined","1","0"));

mysql_select_db($database_connlogregdb1, $connlogregdb1);
$Result1 = mysql_query($insertSQL, $connlogregdb1) or die(mysql_error());

$insertGoTo = "users_LogIn.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
<form method="post" name="form1" action="<?php echo $editFormAction; ?>">
<table align="center">
<tr valign="baseline">
<td nowrap align="right">UserEmail:</td>
<td><input type="text" name="userEmail" value="" size="32"></td>
<tr valign="baseline">
<td nowrap align="right">UserPassword:</td>
<td><input type="text" name="userPassword" value="" size="32"></td>
<tr valign="baseline">
<td nowrap align="right">UserFirstname:</td>
<td><input type="text" name="userFirstname" value="" size="32"></td>
<tr valign="baseline">
<td nowrap align="right">UserFamilyName:</td>
<td><input type="text" name="userFamilyName" value="" size="32"></td>
<tr valign="baseline">
<td nowrap align="right">IsAdmin:</td>
<td><input type="checkbox" name="isAdmin" value="" ></td>
<tr valign="baseline">
<td nowrap align="right">&nbsp;</td>
<td><input type="submit" value="Insert record"></td>
<input type="hidden" name="MM_insert" value="form1">


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





Ease of use


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...