Skip navigation
Cree119
Currently Being Moderated

Form doesn't submit [was: Please Help!]

Aug 27, 2012 12:01 PM

I am new to web development and am obviously just not seeing what I'm missing. I re-built our company's website in January (mostly because of over-charging by our webmaster). It is an exceptionally basic .html sight but it works for us. I have learned a great deal about coding the basics and have been slowly going back through my orginal pages and cleaning up the code. While I was doing that I noticed that one of the pages our customers use are from our old website. I am trying to create a form that I will be able to manipulate that has the look and feel of our current site. Maybe you can take a look and explain to me why when I fill in all the required fields and hit the "submit" button nothing happens.

http://http://langsauction.com/Staging/bid_form_test.html

 

Our server has a cgi folder that has not been touched or moved so I am guessing I just haven't figured out where to add the code I need for this to work.

 

I have checked the code from our old page:

http://https://langs11.securesites.net/bids/index.php/

 

Other than it being a .php I can't see what I missed.....

 

When the information is submitted from the "old" page it is stored on our server and I receive an email notification, I click the link in my email and am directed to a printable page with all of our customer's information. I would like the same thing to happen with my new page.

 

I really appreciate any help you can give me!

Christina

 

Subject line edited by moderator to indicate nature of problem

 
Replies
  • Currently Being Moderated
    Aug 27, 2012 12:31 PM   in reply to Cree119

    The form tag is -

     

    <form id="absenteebids" name="absenteebids" method="post" action="cgi-bin/email.pl">

     

    so it's submitting the data to this file in the cgi-bin folder.  What happens next is a function of what's in that perl file (email.pl).  Can we see its contents?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 27, 2012 12:54 PM   in reply to Cree119

    There may not be a mail.pl file on your site.  What's in your old php file that the form was submitting to? Can I assume that you can still use PHP on your new site?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2012 10:10 AM   in reply to Cree119

    The form tag directs where the form is submitted via the value of the action attribute -

     

    <form  name=currencyform method="post" action="/bids/index.php/#form_start">

     

    In your case, the form is sending the form data to the page carrying the form (i.e., itself - index.php which is a php page.  The PHP script that then processes the form's submitted data is at the top of this page, probably, and can only be seen when you open the page in DW.  Do you see a large block of PHP scripting at the top of the page, or somewhere within the page?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2012 2:14 PM   in reply to Cree119

    I touched none of the function coding, only switched out text and moved items around.....what is am I doing wrong?!?

     

    The answer is undoubtedly in your PHP.  You should step away from the keyboard, after you post your page's code here. Trying to debug a page that someone is changing is like trying to nail jelly to the wall.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2012 6:30 AM   in reply to Cree119

    As a start, try changing this -

     

    require_once 'https://langsauction.com/bids/Crypt_Blowfish-1.0.1/Blowfish.php';

    include('https://langsauction.com/bids/functions.php');

    include('https://langsauction.com/bids/db.php');

     

    to this -

     

    require_once($_SERVER['DOCUMENT_ROOT'] . '/bids/Crypt_Blowfish-1.0.1/Blowfish.php');

    include($_SERVER['DOCUMENT_ROOT'] .'/bids/functions.php');

    include($_SERVER['DOCUMENT_ROOT'] .'/bids/db.php');

     

    Now see what happens.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2012 6:46 AM   in reply to Cree119

    What is the exact error message you are getting now?  Is there a line number and filename given?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points