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.

Frustration

Discussion in 'PHP' started by kc3, Jul 11, 2005.

  1. #1
    Okay, when I process a form it goes to the completely wrong directory. In the view source it shows this line of code

    <form method=post action='https://www.circlebfibers.com/index.php?mode=calculate'>

    But the actual line of code is this

    <form method=post action='index.php?mode=calculate'> and this file is on the http://www.circlebfibers.com/order/ directory and is named index.php. Why is this not working!?
    SEMrush
     
    kc3, Jul 11, 2005 IP
    SEMrush
  2. yo-yo

    yo-yo Well-Known Member

    Messages:
    4,620
    Likes Received:
    205
    Best Answers:
    0
    Trophy Points:
    185
    #2
    I'm not sure of your exact problem but here is a quick fix...

    <?php
    echo '<form method=post action="index.php">';
    echo '<input type="hidden" name="mode" value="calculate">';
    ?>
    
    PHP:
    It's the same thing...
     
    yo-yo, Jul 12, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    64
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I see in IE and FF this HTML:

    <form method=post action='index.php?mode=calculate'>

    What browser are you using?
     
    J.D., Jul 12, 2005 IP
  4. rickbkis

    rickbkis Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is '?mode=calculate' argument specification valid/recognized in a 'post'?

    I know it's valid in a 'get' (and is the only way you can pass parameters), but I'm not so sure about 'post'.

    Just a question...
     
    rickbkis, Jul 12, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    64
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The other way around. Whatever you specify in a get-form after the question mark, will be dropped by the browser. You can, however, specify search arguments in a post-form, but you will have to retrieve them as if you are handling a get-form, while the rest of inputs will be submitted in the body of the response.

    J.D.
     
    J.D., Jul 12, 2005 IP
  6. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Crap, I haven't been on in a while and didn't mention I fixed it. lol
     
    kc3, Jul 18, 2005 IP