close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Log In page/Update Record Page

Thread began 6/11/2013 3:52 pm by Robert | Last modified 6/13/2013 12:11 pm by Robert | 1924 views | 17 replies |

Robert

Log In page/Update Record Page

I need to use MY OWN login form that takes me to my MY OWN update record page. I looked in the forum and under tutorials, but I didn''t seem to find an answers.
On the login form I used Security Assist Authenticate User, and on the Update Record page I created a Recordset where I filtered ID, and I used Update Single Record feature.
What am I missing in order to have the records display in the update form?
I attached the files.
Please Help, Thanks, Daniela

Sign in to reply to this post

Jason ByrnesWebAssist

On the login page, the session being created is named ID

on the update page, you are filtering on a session named:
SecurityAssist_ID

change that to filter on the session being created at login:
ID

Sign in to reply to this post

Robert

I made the changes. Still the update record fields are not pulling up the record info. I must be missing something else. I have been working on this for days....

Attached Files
LogInNew4.php
test7.php
Sign in to reply to this post

Jason ByrnesWebAssist

to help troubleshoot, add the following code in the body of the update page:

php:
<?php 

echo("SQL: ".$query_rsAll."<br /><br />"); 
var_dump($_SESSION);
?>



and this code at line 1:

php:
<?php

@session_start();
?>
Sign in to reply to this post

Robert

I added the code. I get redirected to the wrong page.

Sign in to reply to this post

Jason ByrnesWebAssist

couple of probelms:

1) on the test7.php page, you where using the Login Success access rule. I changed that to use the Logged in to AllList2 access rule instead.

2) in the webassist/security_assist/helpergrouprules.php file, the Logged in to AllList2 access rule was set up to use the SecurityAssist_ID session variable, your login page does not create that session, you must have renamed the session the login page was creating at some point.

i updated the rule to use the ID session that is created by the login.

3) you have not set the initial values for the form elements on the update page, i fixed this for the first one, you will need to fic the rest.

for each form element, select it in design view, in the property inspector, click the lightning bolt icon next to Initial Value. then select the corresponding column from the recordset.

Sign in to reply to this post

Robert

Thanks for your assistance:) I still have 2 problems.

1) I am getting a message that is included below:
SQL: SELECT * FROM AllList2 WHERE ID = 4321

array(4) { ["WAENCRYPTEDRETURNUSED"]=> bool(false) ["WAENCRYPTEDRETURNSUCCESS"]=> bool(false) ["WAVT_LogInNew4_590_Errors"]=> string(0) "" ["ID"]=> string(4) "4321" }

2)Also, I can't update the form. The value is not changing in the database. What should I do?

Sign in to reply to this post

Jason ByrnesWebAssist

1) That is from debug code i left behind, i removed it, sorry.

2) in the update behavior, you have bound each column to the recordset bindings, you need to use the form bindings instead.

Sign in to reply to this post

Robert

Great! It is updating the database.
I am getting this error message:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/64/8292264/html/test7.php:2) in /home/content/64/8292264/html/test7.php on line 90

Sign in to reply to this post

Jason ByrnesWebAssist

thats being caused by the blank line at line 1.

line 1 - 4 are:

php:
<blank line>

<?php 
@session_start(); 
?>



the baln kline is causeing the error.

Sign in to reply to this post
loading

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