Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Mar 2018, 10:23
Orly Orly is offline
 
Join Date: Nov 2003
Sending a form on a custom page in vB5

Hello,

I've got a quick little question.

I've added a "New Page" and on that new page I'd like to have a form which users can fill out and that will be sent to my email account. The only problem I have is that I need to know the username of the user who sent me the email. So the username should be inside that email as well. Is there an "easy" way to do this?
If not, I guess they will have to fill out their username manually in the form (which I'd like to avoid).

Thank you very much in advance!

-O
Reply With Quote
  #2  
Old 27 Mar 2018, 06:54
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
What code is your form? Is it html in a static-html-module (could not get the username) or php in a php-module? (in php you get the username by
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

)
__________________
vBulletin-Forum.de closed!
Reply With Quote
  #3  
Old 27 Mar 2018, 10:49
Orly Orly is offline
 
Join Date: Nov 2003
Thank you! I tried it out. The PHP code works perfectly in a php-module.

Unfortunately, the email form I created is HTML + Java and if I add this code to a php-module, it doesn't work properly.
Is there a way to display the user's username in an email sent via a email form in a module?

Sorry, I know my way around HTML, but PHP is still a little new to me.
Reply With Quote
  #4  
Old 27 Mar 2018, 11:56
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
You could create your own widget and put your form in it.
to get the users username you could use:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
vBulletin-Forum.de closed!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Miscellaneous Hacks User Drop Down Icons + Message drop down icons (CSS only) - vb5.2.3/vb5.2.4 napy8gen vBulletin 5.x Template Modifications 13 24 Mar 2018 02:34
Forum Style [SultanTheme] Gadisku vb5 for vb5.2.4 napy8gen vBulletin 5.x Styles 1 03 Nov 2016 00:55
Forum Style [SultanTheme] Daysee vb5 for vb5.2.4 napy8gen vBulletin 5.x Styles 0 19 Oct 2016 08:25



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:11.

Layout Options | Width: Wide Color: