Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ansar 181 posts 291 karma points
    Mar 27, 2011 @ 07:32
    Ansar
    0

    How to save the logged in user's name?

    Hi,

    I have few forms for the users to fill in after logging in.. In the admin listing I want to know who filled the form..

    How can I save the username and full name as part of the form data?

    Thanks and Best Regards,
    Ansar

  • Jacob Jensen 10 posts 31 karma points
    Mar 27, 2011 @ 08:56
    Jacob Jensen
    0

     

    psuedo:

    <input type="hidden" value="um.lib:GetCurrentMember()/username" name="username" />

  • Ansar 181 posts 291 karma points
    Mar 27, 2011 @ 09:47
    Ansar
    0

    Hi,

    Thank you for the reply.. but I dont know how to use it.. Can you please give a bit more details..

    I am able to save data from QueryString using [@key] syntax.. but data from hidden fields is not getting saved.. Please help

    Thanks and Regards,
    Ansar

  • Jacob Jensen 10 posts 31 karma points
    Mar 27, 2011 @ 09:49
    Jacob Jensen
    0

    Try to set ur form to method="get" and see if the values are in the querystring ? is it a .net form, or just a normal ? remember runat="server" if its a .net

  • Ansar 181 posts 291 karma points
    Mar 27, 2011 @ 10:05
    Ansar
    0

    Its an Umbraco Contour form.

    Yes the data is getting posted to server.. I can see it using  umbDebugShowTrace=1.

    But its not getting saved!

  • Jacob Jensen 10 posts 31 karma points
    Mar 27, 2011 @ 10:11
    Jacob Jensen
    0

    ahh sry im new in this forum, dident read the category "contour"..

    Maybe u have to make a hidden field in contours, and ex with javascript add the value to the hidden <input>..

    /J

Please Sign in or register to post replies

Write your reply to:

Draft