close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

registration page not working

Thread began 10/10/2016 6:00 am by Jamie | Last modified 10/12/2016 11:14 am by Ray Borduin | 1826 views | 10 replies |

Jamie

registration page not working

Hey Ray

Just setting up a user registration/login area and have got through to the end but the registration.php is not working (blank screen).

DW is throwing up that the 'if' is incorrect:

@session_start();
if((before page load != "")) {
$_SESSION["rpw"] = "".WA_RandomPassword(8, true, true, true, "!@#$%^*()-_.:,;") ."";
}
?>



On the localhost version of the same page I get this error:

Parse error: syntax error, unexpected 'page' (T_STRING) in C:\xampp\htdocs\friths\registration.php on line 11



Line 11 is if((before page load != "")) { as shown above

Not sure what I did wrong with the tut as going over it again I *think* I followed it to the letter....

Have attached the registartion form in case you need it.

Thanks

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

The trigger wasn't parsed properly.

Open up the server behavior and change the trigger and change it back again.

It should be:

php:
if("" == "")     {
Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

got it and its now working. thanks :)

now when you click the link to verify the amil (either on registration or update pages) it says that the verfication link has expired

Sign in to reply to this post

Ray BorduinWebAssist

Can I see a copy of the page with the error? You will have to debug where it went wrong. Did the code get stored correctly on registration? Is it returning a value in the recordset on the confirm page?

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

hmmm it seems that the randomString is not being added to the db....

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the data type might be set to numeric on the registration page. Try updating that and do a new insert. It appears you have tracked the problem down to the registration page not setting the session variable.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

OK have changed that, but still only showing '0' in the column

EDIT: have created this from scratch to see if I could catch where am going wrong, but even on the updated pages the registaration is not adding the value to the db

Sign in to reply to this post

Ray BorduinWebAssist

This most recent version isn't even setting the value for the randomString field in the insert at all.

What is the data type of that column in your database? It looks like that might have been the problem in the original file. It needs to be varchar(10)

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

OK, I have put back the original and changed the datatype from text to varchar

now its inserting a 0 in the row.....

EDIT: seemed to have got it adding the randomString to the db now but when i click on the verify link in the email its still saying link expired. It works fine if the email is sent from the user-update page.....

On the registration email, the email address is not being added at the end of the slug as

<a href="http://www.domain.co.uk/user-confirm.php?id=<?php echo $_SESSION['SecurityAssist_UserID']; ?>&randomString=<?php echo $_SESSION['rpw']; ?>&email=<?php echo((isset($_POST["Registration_group_UserEmail"]))?$_POST["Registration_group_UserEmail"]:"") ?>">click here</a>
Sign in to reply to this post

Ray BorduinWebAssist

The name of the field is: Registration_group_Email

you have it as: Registration_group_UserEmail

Sign in to reply to this post
Did this help? Tips are appreciated...
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...