I want to insert a contact form on an event, so the user can register to that event. I don't want to generate a contact form for each event, so my idea is to catch the date from a site element
Date:
<span class="ecwd-event-date" itemprop="startDate" content="2017-06-22T18:00"> 22.06.2017 18:00 - 13.07.2017 21:30 </span>
Subject:
<h1 itemprop="name" class="ecwd-events-single-event-title summary entry-title">subject</h1>
Is that possible?
Might be easier to use this plugin https://wordpress.org/plugins/cf7-database/ . This will let you keep a db record of the submission with a timestamp. Rather than the form generating the timestamp, the DB will generate it when the user submits the form.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.