• Hi,

    I am trying to dynamically pull the logged in user’s email address into a form before it is submitted. Here is the code:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <form method="post" ><input id="email" name="user_email" type="hidden" value="LOGGED IN USER EMAIL HERE" />
    <input type="submit" value="Register for webinar" /></form>

    Any idea how I do this without php?

    Thanks

Viewing 1 replies (of 1 total)
  • You can use jQuery for it.

    For example

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <script type="text/javascript>
     if(jQuery("#email").length){
       jQuery("#email").val("Your Logged In Users Email Here");
    }
    </script>
Viewing 1 replies (of 1 total)
  • The topic ‘How to add logged in user info without php’ is closed to new replies.