Search found 135 matches
- Wed Sep 05, 2007 3:21 am
- Forum: PHP - Code
- Topic: funny results
- Replies: 4
- Views: 615
- Wed Sep 05, 2007 3:08 am
- Forum: PHP - Code
- Topic: funny results
- Replies: 4
- Views: 615
- Tue Sep 04, 2007 11:30 am
- Forum: PHP - Code
- Topic: funny results
- Replies: 4
- Views: 615
funny results
I have a script which inserts data into a database(Thats fine) now what the script does it goes through a loop of how many times it should inset the data(thats fine). As shown below: <?PHP include 'opendb.php'; ?> <?PHP include 'header.php'; ?> <?php extract($_GET); $datefrom= $_GET['$datefrom']; $d...
- Mon Aug 20, 2007 11:43 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
- Mon Aug 20, 2007 11:18 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
- Mon Aug 20, 2007 10:55 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
Thanks for the code everyone.... i think i found what the problem but i'm not sure how to resolve it when the array is passed it goes into a script, where it will check which button is pressed and then redirects it to a certain page that corresponds with the button.. I dont think the header is passi...
- Mon Aug 20, 2007 10:27 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
The anwser is:
Code: Select all
bool(true)
string(5) "Array"- Mon Aug 20, 2007 10:17 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
- Mon Aug 20, 2007 9:55 am
- Forum: PHP - Code
- Topic: Invalid argument supplied for foreach()
- Replies: 13
- Views: 919
Invalid argument supplied for foreach()
I got this error that is preventing the for loop from working: Warning: Invalid argument supplied for foreach() in C:\on line 11 line 11 is foreach ($_GET['HotelRoomID'] as $selected_hotel) { <?PHP $HotelRoomID = $_GET['HotelRoomID']; $AvailableFrom = $_GET['AvailableFrom']; $dat = str_replace("...
- Tue Aug 14, 2007 11:59 am
- Forum: PHP - Code
- Topic: Not passing variables
- Replies: 6
- Views: 584
- Tue Aug 14, 2007 11:49 am
- Forum: PHP - Code
- Topic: Not passing variables
- Replies: 6
- Views: 584
- Tue Aug 14, 2007 11:31 am
- Forum: PHP - Code
- Topic: Not passing variables
- Replies: 6
- Views: 584
- Tue Aug 14, 2007 11:01 am
- Forum: PHP - Code
- Topic: Not passing variables
- Replies: 6
- Views: 584
Not passing variables
I have a script, based on the button pressed it will forward to a certain page.That bit works fine. What the problem is the variables that are sent are not being passed on to those forwarded pages.... Here is the code: <?PHP //print_r($_GET); $ClientDetailID = $_GET['ClientDetailID']; $HotelRoomID =...
- Wed Aug 08, 2007 9:40 am
- Forum: PHP - Code
- Topic: Not redirecting
- Replies: 4
- Views: 471
I got it kind of working, if i press the release but it works, but if i press the confirm button i get the following error: Notice: Undefined index: Release in C:\check.php on line 8 i did your print_r($_GET) and i got the following: Array ( [AvailableFrom] => 22 Aug 2007 0:00 [HotelRoomID] => 200 [...
- Wed Aug 08, 2007 8:30 am
- Forum: PHP - Code
- Topic: Not redirecting
- Replies: 4
- Views: 471
Thery are set at GET:
Code: Select all
<form action=http://www.some.com/check.php method="get">