Results 1 to 3 of 3

Thread: ooooh now what - form php?
      
   

  1. #1
    Alistair is offline Sergeant
    Join Date
    Jan 2007
    Posts
    20

    Default ooooh now what - form php?

    Hi there,

    I finished my site except for the form which was the last page,
    I didnt realise when I planned this project that forms had to be published as .php as result all the links and navs to that page are .html.
    ooooh!

    1) Do I have to republish each page with new links or is their a more efficient and friendly way to do this?

    2) Or is there a way to load the form as html and make the submit button direct to the thankyou page?

    3) Or can I change these links with out actually re publishing the pages individually?

    Any assistance or views on this will be highly appreciated!

    Regards
    Al
    www.comedyshop.co.za/feedback.php

    Ha - Hows my luck?

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: ooooh now what - form php?

    1) Do I have to republish each page with new links or is their a more efficient and friendly way to do this?
    Forms do not "have to" be published as .php. The form can be html. The page that processes the form data has to be .php as it will contain the php script.

    2) Or is there a way to load the form as html and make the submit button direct to the thankyou page? That is exactly how it works. The form can be html. The action of the page is set to what ever page will contain the php code to process the form. For example: action.php or thankyou.php etc...

    3) Or can I change these links with out actually re publishing the pages individually? No. If you change a page to a .php and leave the link as .html - it will never go to the page you desire.

    To your form I would make the following corrections:
    1- change the names of the fields to lower case letters and in the case of the "How did you find us" box- change its name from Advertising that works to something simple like- referred_from

    When naming fields you want to be very simple and keep it short. Additionally- lower case is preferred. If you need help with the php code portion, just post back.

    Andy
    PHP- is a blast!

  3. #3
    Alistair is offline Sergeant
    Join Date
    Jan 2007
    Posts
    20

    Default Re: ooooh now what - form php?

    Thank you so much, this has been really help full and yes I didn`t have clue how that works, Thank you!
    I took the PHP code from the tutorial, that should be right, but I will post here if I have a hassle.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not 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