PHP logic not working
|
2014-06-20, 11:25
Post: #2
|
|||
|
|||
RE: PHP logic not working
(2014-06-20 09:02)jhonny Wrote: Hi Guys, I think the problem is the calling factor. ${serial} is a place holder for the iPXE calls, so can the reason why the output is 9 characters is because the actual information stored in serversn is: ${serial}, literally. Which, as it happens, is 9 characters. The way I pass variables like such back to my php scripts is to send it back in the url. So I might have something like: PHP Code: print "#!ipxe\n"; Then I use the GET or POST var of servsn, this should now be set to the serial, not literally set to ${serial}. So my Logic would contain, to check it, something like: PHP Code: if ($_GET['serversn']) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
PHP logic not working - jhonny - 2014-06-20, 09:02
RE: PHP logic not working - mastacontrola - 2014-06-20 11:25
RE: PHP logic not working - jhonny - 2014-06-20, 12:01
RE: PHP logic not working - mastacontrola - 2014-06-20, 12:45
|
User(s) browsing this thread: 2 Guest(s)