close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Showing UserID in acknowledgement page

Thread began 3/12/2013 7:21 am by ori382079 | Last modified 3/12/2013 10:23 am by Jason Byrnes | 1687 views | 7 replies |

ori382079

Showing UserID in acknowledgement page

Hi there, I have a slight challenge here. I'll like a user to have his/her ID (which is UserID) after the registration form is submitted. This ID will be included in the thank you page for the user to take note of and keep for his/her records.
Now I have created the recordset and bound the user_Id data to the field in the thank you page but on testing it, the user_ID does not show. Please would you check for me where I have made mistake. I will really appreciate it. Please see the attached files:

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to store the ID in a session on the apply page.

on the apply page, change line 66:

php:
$Result1 = mysql_query($insertSQL, $su_lokoja) or die(mysql_error());



to:

php:
$Result1 = mysql_query($insertSQL, $su_lokoja) or die(mysql_error());

$_SESSION['UserID'] = mysql_insert_id($su_lokoja);




then on the thank you page, you can display the id using this code:

php:
<?php 

@session_start(); 
echo(isset(
$_SESSION['UserID'])?$_SESSION['UserID']:"");
?>
Sign in to reply to this post

ori382079

Showing UserID in acknowledgement page

Thanks Jason, but it's still not working. Though the Primary key in the table is NT_ID which I changed accordingly. See my attached files

Sign in to reply to this post

Jason ByrnesWebAssist

Is the NT_ID column set to auto increment?

maybe try changing:

php:
$_SESSION['NT_ID'] = mysql_insert_id($su_lokoja);



to:
[php]$_SESSION['NT_ID'] = mysql_insert_id($su_lokoja);
@session_commit();[php]

Sign in to reply to this post

ori382079

Showing UserID in acknowledgement page

Yes, the NT_ID is set to auto increment

Sign in to reply to this post

Jason ByrnesWebAssist

ok, welllll, did you try adding the session commit line?

Sign in to reply to this post

ori382079

Showing UserID in acknowledgement page

Hi Jason, i have tried it and there is no luck.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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