Jump to content

form with time variable


beachdaze

Recommended Posts

Don't expect to get the full answer as it may be beyond the scope of a forum, but any help even if a point to the proper tutorial is welcomed!

Need to have a "sign up" form that populates in 30 minute intervals.  When a  user clicks a link it passes the date/time and a flight variable in the url.  This link goes to a form for user info.  I need the info from the form (name, date/time & flight) to populate on the first page in the correct time slot.  A sample page is at http://chrysalis.floridasonriseemmaus.com/girls2_prayer.php since I doubt I'm very clear.  The form inserts into the db just fine, however I'm lost in how to get the data to fill the proper place in the list. 

Thanks for any help, if you'd want to email directly, it's brucelcampbell at gmail dot com.

Peace.
Link to comment
https://forums.phpfreaks.com/topic/34741-form-with-time-variable/
Share on other sites

you can set a hidden input and put it inside the form.  This hidden input would be the time.

for ex:
I click www.yourserver.com/theform.php?timestamp=323235234

insdie 'theform.php', you will retrieve the timestamp value and set a hidden input inside the form's html

theform.php:
<?php
echo "<form .....";

echo "<input type=hidden name=mytimestamp value={$_GET['timestamp'] />";

echo "</form>";

you got the idea?


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.