1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

<input type="submit"....

Discussion in 'C#' started by bobocheez, Jun 7, 2008.

  1. #1
    ok so i have this form where a user clicks a "submit" button

    all i know is that theres a "form_action.asp" involved (if i only knew what that was)
    this is from someone's script and i have no idea what im doing

    when the user clicks "submit" they are take to a blank page that just sits there
    what do i do to take them to a page that i want?

    btw:if its any help, its implemented in a php page :p
     
    bobocheez, Jun 7, 2008 IP
  2. rkstech

    rkstech Active Member

    Messages:
    196
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #2
    In the Action = "", replace that webpage URL to an URL that you want the form ot be submitted.
     
    rkstech, Jun 9, 2008 IP
  3. bobocheez

    bobocheez Peon

    Messages:
    396
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    here's the code
    i changed index.php to a diff url and it did the same thing, took me to a blank page

    http://domain.com/home/index.php?mode=messages&act=view_inv&inv_id=148 (thats the url where the form is)

    http://domain.com/home/index.php?mode=messages&act=inv_action&pro=conf&inv_id=148&answer=

    (thats the url after hitting accept, and if you type anything in the textarea, that will appear after the = in the url

    <form action="index.php">
    <input type="hidden" name="mode" value="messages">
    <input type="hidden" name="act" value="inv_action">
    <input type="hidden" name="pro" value="">
    <input type="hidden" name="inv_id" value="<? echo $inv_id; ?>">
    <tr><td align=right class="title"><?=$GLOBALS['word'][83];?></td>
    <td>
    <? echo $date; ?>
    </td>
    <tr><td align=right class="title"><?=$GLOBALS['word'][76 ];?></td>
    <td>
    <? echo $mes->subject; ?>
    </td>
    <tr><td align=right class="title">Message</td>
    <td>
    <? echo $mes->body; ?></td>
    <tr><td align=right class="title">Your Answer</td>
    <td><textarea name='answer' rows=5 cols=45></textarea></td>
    <tr><td align=right colspan=2>
    <p align=right>
    <input type="submit" onClick="this.form.pro.value='del'" value="Deny">
    <input type="submit" onClick="this.form.pro.value='conf'" value="Accept"></p></form>
     
    bobocheez, Jun 9, 2008 IP
  4. rkstech

    rkstech Active Member

    Messages:
    196
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #4
    change it to

    <form action="index.php" method= "post">
     
    rkstech, Jun 10, 2008 IP