Jump to content

WordPress Plugin Contact Form 7 Populate Fields from Session


Recommended Posts

Hopefully someone can help me solve with this "easy" problem!

I'm looking for a way to populate data in a Contact Form 7 (WordPress) from session.

The session will be started by clicking on a book now button like this:

<?php session_start(); if(isset($_GET['bookingdate'])) {    $_SESSION['started'] = true;}?><a href="?bookingdate"> Book now </a>

After clicking the button and the session is started I want to redirect to the form "booking " page and populate one of the fields with the booking date.

The visitor will fill the rest of the form and submits. After submission the session will be destroyed.

Would that be possible when using Contact Form 7 and WordPress?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...