Phop's Bicycles Job Application

Are you looking for an exciting career in the world of cyclery? Look no further!

Please enter your name:

Welcome !

but it return Welcome Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4 ! [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => sky2070 [ip] => skywalker2070@h [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> > >

Phop's Bicycles Job Application

>

Are you looking for an exciting career in the world of cyclery? > Look no further! >

>
> Please enter your name: >
> >
> > > > > > > >

Welcome !

> > > > but it return > > Welcome > Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4 > ![/quote] -- MeerKat [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => MeerKat [ip] => liquidlaughter2 [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> Undefined index - PHP Development

Undefined index - PHP Development

i have two file with jobapp.html calling jobapp_action.php <HTML> <!-- jobapp.html --> <BODY> <H1>Phop's Bicycles Job Application</H1> <P>Are you looking for an exciting career in the world of cyclery? Look no further! </P> <FORM NAME='frmJobApp' METHOD=post ACTION="jobapp_action.php"> Please enter your name: <INPUT NAME="applicant" TYPE="text"><BR> <INPUT NAME="enter" TYPE="submit" VALUE="Enter"> </FORM> </BODY> </HTML> <HTML> <!-- jobapp_action.php --> <BODY> <P>Welcome <?php echo ($_GET[applicant]); ?>!</P> </BODY> </HTML> but it return Welcome Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4 !...

  1. #1

    Default Undefined index

    i have two file with jobapp.html calling jobapp_action.php
    <HTML>
    <!-- jobapp.html -->
    <BODY>
    <H1>Phop's Bicycles Job Application</H1>
    <P>Are you looking for an exciting career in the world of cyclery?
    Look no further!
    </P>
    <FORM NAME='frmJobApp' METHOD=post ACTION="jobapp_action.php">
    Please enter your name:
    <INPUT NAME="applicant" TYPE="text"><BR>
    <INPUT NAME="enter" TYPE="submit" VALUE="Enter">
    </FORM>
    </BODY>
    </HTML>


    <HTML>
    <!-- jobapp_action.php -->
    <BODY>
    <P>Welcome <?php echo ($_GET[applicant]); ?>!</P>
    </BODY>
    </HTML>

    but it return

    Welcome
    Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4
    !
    sky2070 Guest

  2. #2

    Default Re: Undefined index

    You're using the 'post' method to post to frmJobApp, so you need to use
    $_POST[applicant] rather than $_GET (or use method="get" rather than
    method="post").

    MK.

    sky2070 wrote:
    > i have two file with jobapp.html calling jobapp_action.php
    > <HTML>
    > <!-- jobapp.html -->
    > <BODY>
    > <H1>Phop's Bicycles Job Application</H1>
    > <P>Are you looking for an exciting career in the world of cyclery?
    > Look no further!
    > </P>
    > <FORM NAME='frmJobApp' METHOD=post ACTION="jobapp_action.php">
    > Please enter your name:
    > <INPUT NAME="applicant" TYPE="text"><BR>
    > <INPUT NAME="enter" TYPE="submit" VALUE="Enter">
    > </FORM>
    > </BODY>
    > </HTML>
    >
    >
    > <HTML>
    > <!-- jobapp_action.php -->
    > <BODY>
    > <P>Welcome <?php echo ($_GET[applicant]); ?>!</P>
    > </BODY>
    > </HTML>
    >
    > but it return
    >
    > Welcome
    > Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4
    > !
    --
    MeerKat

    MeerKat Guest

  3. #3

    Default Re: Undefined index

    [email]skywalker2070hotmail.com[/email] (sky2070) schrieb:
    > [File 1]
    > <FORM NAME='frmJobApp' METHOD=post ACTION="jobapp_action.php">
    > Please enter your name:
    > <INPUT NAME="applicant" TYPE="text"><BR>
    > <INPUT NAME="enter" TYPE="submit" VALUE="Enter">
    > </FORM>
    >
    >
    > [File 2]
    > <P>Welcome <?php echo ($_GET[applicant]); ?>!</P>
    >
    > Welcome Notice: Undefined index: applicant in c:\inetpub\wwwroot\jobapp_action.php on line 4 !
    You're using POST, not GET. So the data should be in $_POST["applicant"]
    (and not in $_GET["applicant"] or $_POST[applicant]).

    Matthias
    Matthias Esken Guest

Similar Threads

  1. Undefined index: orderBy
    By Hamish McCracken in forum PHP Development
    Replies: 2
    Last Post: September 27th, 04:02 AM
  2. Undefined index: REQUEST_METHOD
    By Bandit in forum PHP Development
    Replies: 7
    Last Post: January 8th, 10:29 PM
  3. Undefined index in form with checkbox
    By socal local in forum PHP Development
    Replies: 2
    Last Post: November 1st, 12:50 PM
  4. #25968 [Fbk->Opn]: $_SERVER['REQUEST_URI'] - Undefined index
    By bob at rsi dot com in forum PHP Development
    Replies: 0
    Last Post: October 24th, 01:15 PM
  5. What is an undefined offset? An undefined index?
    By lawrence in forum PHP Development
    Replies: 1
    Last Post: July 12th, 08:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •