Click here to Skip to main content
15,881,938 members
Home / Discussions / JavaScript
   

JavaScript

 
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 
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 
OK, remove the "1" from the field names in the template, and from the PHP script:
HTML
<input type="text" name="sourcename{{rowNumber}}" id="sourcename{{rowNumber}}" value="" class="required requiredField" />
<!-- Same with the other fields... --!>

PHP
$sourcename1 = $_POST['sourcename' . $id];
// Same with the other fields...




"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 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 
Questionremoving duplicates from array in order to use regex to find match. returning null Pin
Member 1299542016-Feb-17 16:26
Member 1299542016-Feb-17 16:26 
AnswerRe: removing duplicates from array in order to use regex to find match. returning null Pin
Nathan Minier17-Feb-17 1:31
professionalNathan Minier17-Feb-17 1:31 
QuestionAJAX request for photos Pin
Member 1300611016-Feb-17 11:06
Member 1300611016-Feb-17 11:06 
QuestionDynamically add row by DIV(SOLVED) Pin
samflex16-Feb-17 5:46
samflex16-Feb-17 5:46 

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.