Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE PHP and MySQL user input data
2013-10-23, 10:28
Post: #2
RE: iPXE PHP and MySQL user input data
You need to do it in two parts. First you need to create an iPXE script (either static text or via PHP) that asks the questions (echo/read multiple times). Then you need to send that information to another PHP script that will take the information and insert it into the database.

Your initial script could be as simple as this:

Code:
#!ipxe
echo -n Name:
read name
echo -n Email:
read email
chain http://myserver/store_information.php?name=${name:uristring}&email=${email:uristring}

The script store_information.php will have to fetch the value of the name and email CGI query string variables and then inject that into the database. Check the PHP documentation how you do that (I'm not a PHP programmer myself). Depending on what the result of the store script is, you can emit another dynamic ipxe script that does something else (up to you what).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: iPXE PHP and MySQL user input data - robinsmidsrod - 2013-10-23 10:28



User(s) browsing this thread: 1 Guest(s)