On form.subit, it removes part of my url

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default On form.subit, it removes part of my url

    I have attached the code.. does anyone know why when you click submit it
    doesn't process the form, instead redirects it to nearly the same url, but it
    removes my editid variable which then gives me an error. Any ideas?

    <cfif isDefined("form.subadminedit")>
    <cfquery name="login_adm" username="sla" password="slaera" datasource="sla">
    UPDATE login_adm
    SET
    name = <cfqueryparam value="#FORM.name#">,
    position = <cfqueryparam value="#FORM.position#">,
    login = <cfqueryparam value="#FORM.username#">,
    login_passwd = <cfqueryparam value="#FORM.password#">,
    login_type = <cfqueryparam value="#FORM.logintype#">,
    look_feel = <cfqueryparam value="#FORM.lookfeel#">,
    league_info = <cfqueryparam value="#FORM.leauge#">,
    messaging = <cfqueryparam value="#FORM.messaging#">,
    marketing = <cfqueryparam value="#FORM.marketing#">,
    posit_it_notes = <cfqueryparam value="#FORM.postits#">,
    field_condition = <cfqueryparam value="#FORM.fieldconditions#">,
    rec_roster = <cfqueryparam value="#FORM.recruiterroster#">,
    rec_login = <cfqueryparam value="#FORM.recruiterpassword#">,
    sub_admin_setup = <cfqueryparam value="#FORM.subadmin#">,
    season = <cfqueryparam value="#FORM.season#">,
    rate = <cfqueryparam value="#FORM.scorevalue#">,
    registration = <cfqueryparam value="#FORM.registration#">,
    venue = <cfqueryparam value="#FORM.venue#">,
    game_length = <cfqueryparam value="#FORM.gamelength#">,
    time_between_games = <cfqueryparam value="#FORM.timebetweengame#">,
    best_time = <cfqueryparam value="#FORM.besttime#">,
    travel_time = <cfqueryparam value="#FORM.traveltime#">,
    division = <cfqueryparam value="#FORM.division#">,
    cross_division = <cfqueryparam value="#FORM.crossdivisionplay#">,
    groups = <cfqueryparam value="#FORM.group#">,
    pool = <cfqueryparam value="#FORM.poolplay#">,
    cross_pool = <cfqueryparam value="#FORM.crosspoolplay#">,
    team_seed = <cfqueryparam value="#FORM.teamseeding#">,
    player_seed = <cfqueryparam value="#FORM.playerseeding#">,
    game = <cfqueryparam value="#FORM.game#">,
    game_card = <cfqueryparam value="#FORM.gamecard#">,
    score = <cfqueryparam value="#FORM.score#">,
    conflicts = <cfqueryparam value="#FORM.conflicts#">,
    schedule = <cfqueryparam value="#FORM.scheduler#">,
    team = <cfqueryparam value="#FORM.team#">,
    team_roster = <cfqueryparam value="#FORM.teamroster#">,
    team_Stats = <cfqueryparam value="#FORM.teamstats#">,
    team_contact_info = <cfqueryparam value="#FORM.teamcontactinfo#">,
    team_approval = <cfqueryparam value="#FORM.teamapprovalandpaperwork#">,
    mgr_login = <cfqueryparam value="#FORM.managerloginpassword#">,
    contact = <cfqueryparam value="#FORM.coachmanagerasstcoach#">,
    contact_contact_info = <cfqueryparam
    value="#FORM.coachmanagerasstcontact#">,
    coach_card = <cfqueryparam value="#FORM.coachcard#">,
    official = <cfqueryparam value="#FORM.referee#">,
    assign_official = <cfqueryparam value="#FORM.assignreferee#">,
    official_contact_info = <cfqueryparam
    value="#FORM.refereecontactinformation#">,
    player_guardian = <cfqueryparam value="#FORM.playerandguardians#">,
    player_card = <cfqueryparam value="#FORM.playercard#">,
    player_stats = <cfqueryparam value="#FORM.playerstats#">,
    player_profile = <cfqueryparam value="#FORM.playerprofile#">,
    player_approval = <cfqueryparam value="#FORM.playerapprovalandpaperwork#">,
    player_contact_info = <cfqueryparam
    value="#FORM.playercontactinformation#">,
    player_login = <cfqueryparam value="#FORM.playerloginpassword#">
    WHERE login_id = <cfqueryparam value="#form.login_id#">
    </cfquery>
    <h2 align="center">Update Complete</h2>
    </cfif>

    weswhite7 Guest

  2. Similar Questions and Discussions

    1. Clearing IE cache removes Flash
      Whenever I clear the IE cache (Delete Temporary Internet Files) it also removes Flash from the browser. The next time I visit a site with Flash, it...
    2. 'no leading boundary' multi-part form error
      I had been suffering from this problem for ages. I just dealt with the problem by removing the enctype='multipart/form-data' from my <form>...
    3. Rebooting removes libauthmysql.so
      Whenever I reboot my machine, libauthmysql.so gets deleted, so I can't use courier-imap anymore. I can't figure out why it's doing it, and it's...
    4. Executing code that is part of a control after it gets posted back from the form in the users browser.
      Hello dear .NET'rs, I have made a simple RememberingTextBox control which looks in the session for a session variable with the same name as the...
    5. Advise (Best Practice) for a multi-part web form
      Hi, I am looking for some advice on how to split up (multi-part) web forms. The first part of the form would be consistent for all users but...
  3. #2

    Default Re: On form.subit, it removes part of my url

    Can you post the form code?
    mxstu Guest

  4. #3

    Default Re: On form.subit, it removes part of my url

    Yes I can, it is veryyyy long because the only way I could figure out to dynamically check the radio buttons was to use Dreamweaver's method.
    weswhite7 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139