Click here to Skip to main content
15,888,802 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 4:11
mveRichard Deeming28-Feb-17 4:11 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 4:28
samflex28-Feb-17 4:28 
GeneralRe: Call to Member function execute() on null... Pin
Richard Deeming28-Feb-17 4:32
mveRichard Deeming28-Feb-17 4:32 
GeneralRe: Call to Member function execute() on null... Pin
samflex28-Feb-17 5:38
samflex28-Feb-17 5:38 
QuestionGetting "Notice: Undefined offset: 1" error (SOLVED) Pin
samflex21-Feb-17 6:12
samflex21-Feb-17 6:12 
AnswerRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 8:37
mveRichard Deeming21-Feb-17 8:37 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 8:46
samflex21-Feb-17 8:46 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:03
mveRichard Deeming21-Feb-17 9:03 
samflex wrote:
Undefined index: sourcename10 in C:\xampp\htdocs\disclosures\forms\preview.php on line 13

Because you're using:
for ($id = 0; $id < $rowIDs; $id++)

so $id is the index, not the value.

Use the "foreach" version[^], as I suggested, and $id will be the value:
for ($rowIDs as $id)

If you want to stick to the standard for loop, you'll need to use:
for ($index = 0; $index < $rowIDs; $index++){
    $id = $rowIDs[$index];
    $sourcename1 = $_POST['sourcename1' . $id];
    ...
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 9:12
samflex21-Feb-17 9:12 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:22
mveRichard Deeming21-Feb-17 9:22 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 9:34
samflex21-Feb-17 9:34 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 9:37
mveRichard Deeming21-Feb-17 9:37 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 10:04
samflex21-Feb-17 10:04 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming21-Feb-17 11:06
mveRichard Deeming21-Feb-17 11:06 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex21-Feb-17 15:34
samflex21-Feb-17 15:34 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming22-Feb-17 2:41
mveRichard Deeming22-Feb-17 2:41 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex22-Feb-17 3:22
samflex22-Feb-17 3:22 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming22-Feb-17 5:02
mveRichard Deeming22-Feb-17 5:02 
GeneralRe: Getting "Notice: Undefined offset: 1" error Pin
samflex23-Feb-17 2:59
samflex23-Feb-17 2:59 
PraiseRe: Getting "Notice: Undefined offset: 1" error Pin
Richard Deeming23-Feb-17 3:41
mveRichard Deeming23-Feb-17 3:41 
QuestionDownload images from bing to use without internet connection Pin
Member 1301427820-Feb-17 23:42
Member 1301427820-Feb-17 23:42 
AnswerRe: Download images from bing to use without internet connection Pin
OriginalGriff20-Feb-17 23:44
mveOriginalGriff20-Feb-17 23:44 
GeneralRe: Download images from bing to use without internet connection Pin
Member 1301427820-Feb-17 23:49
Member 1301427820-Feb-17 23:49 
AnswerRe: Download images from bing to use without internet connection Pin
ZurdoDev21-Feb-17 2:01
professionalZurdoDev21-Feb-17 2:01 
Questionangular-cli chrome extension bootstrap from many .html Pin
JulioGold19-Feb-17 8:29
JulioGold19-Feb-17 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.