How to send session information in an HTML email [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
With PHP, I want to send a link into my clients' email so they can have access to a page on my website. This page will not be accessed by other users. So I plan to include some session information in the mail function.
I don't know how to go about it. Please kindly assist.

You can't send session info through to the email, but I would recommend creating a special token that is stored in your database. You can generate the link in the email to include that special token, then validate against it to ensure they are who they say they are.

Related

how to create a temporary session for visitors without them logging into my website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
Php Am building a e-commerce website so I want to create a temporary session for each and every user who visits my website and then store the information in database? (Note: without him creating an account)
You can use session_start function to create session in PHP, then you can store information about visitor, this is sample PHP code using session
<?php
session_start();
// set user name
$_SESSION['user_name] = $_POST['user_name']

How can i create a page that tailors personal info to the user [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
After hours of trial and error, using WAMP i made a login system that mails me locally ( password recovery etc). I want to make pages that only the user has information tailored to the user, think of it as a profile page Facebook or Twitter, the news updates.
You can use sessions. In php you can type session_start(), then you can store some information about the user. So if the user don't have a session he can't access the page. Search about session_start(). You will find many examples about it.

How to send an sms comfirmation for when user sign up [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm creating a website that requires user to sign up in order to get an account.I was just wondering, what type of api/code/etc do I need to use to send a verification code to directly to their phones.Once they receive the message they should be able to send like a text to that number (ex: send yes to confirm to the number #987) and the account automatically gets confirm from the text message.
Here you've got a list of SMS APIs: http://blog.mashape.com/list-of-50-sms-apis/. It's from 2013 though, some of them might have changed. You do have free APIs like http://textbelt.com/ but it depends on where do you want to send those SMSem, different providers in different countries have different gateways. I think it's impossible to answer you in 1 sentence.

How to generate a new PHP file with PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can anyone tell me how to Dynamically generate a new php file? Like generate it and then set it's code. Say that there was a user who created an account. When he created that account I would like it to generate his profile page.
Thanks!
You can do this using file_put_contents, but it's bad practice. It's much easier/better to just have one PHP file, profile.php for example, which takes a GET parameter for the user ID, then dynamically displays the correct information based on the user ID.

Auto Email sending [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have been making a website for a client and he has requested two things. The first is to send an email when a job is assigned to a users accounts and the second is to enable a user to recover a lost password for a the user via an automated email. The website has been coded using HTML5 CSS PHP and SQL for the database back end.
I am unsure of how to set up this function to send this automated email
any help would be greatly appreciated
Thank You
Did you google it?
Use the mail function. http://php.net/manual/en/function.mail.php
Im using phpmailer for that job. :-)
http://phpmailer.worxware.com/

Categories