The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE PHP and MySQL user input data
2013-10-22, 11:11 (This post was last modified: 2013-10-23 10:21 by robinsmidsrod.)
Post: #1
iPXE PHP and MySQL user input data
I am working with iPXE. My question is how can I make user input in iPXE like in "login"?

My goal is to have user input data to be stored in database, so that when I install remotely, I have the data for reports.

I have created script using "echo" and "read" but these don't work.

Here my sample script:

Code:
header ("Content-type: text/plain");
echo "#!ipxe\n";
echo "echo -n Client Name: ";
echo "read hotelname";
echo "echo -n Contact Person: ";
echo "read contact";
echo "echo -n Phone: ";
echo "read phone";
echo "echo -n Address:";
echo "read address";
echo "echo -n City: ";
echo "read city";
echo "echo -n Country: ";
echo "read country";

$hotel = "\${hotelname}";
$contact = "\${contact}";
$phone = "\${phone}";
$address = "\${address}";
$city = "\${city}";
$country = "\${country}";

Thank you very much.

Regards,
Hermie
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE PHP and MySQL user input data - hermie - 2013-10-22 11:11



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