Results 1 to 4 of 4

Thread: Can I put Contacts form into Index page?
      
   

  1. #1
    ksneoh is offline Sergeant
    Join Date
    Jan 2008
    Posts
    24

    Talking Can I put Contacts form into Index page?

    In the video tutorial, an example is shown of a "Contact Us" form, for the visitor to fill in his/her name, email address, etc., and then the page is saved with a .php extension.

    Question : can this kind of form be inserted into my Home Page, which is supposed to have a URL that looks like www.mydomain.com/index.html ? Or will this page need to be changed to something like www.mydomain.com/index.php ?

    What are the tricks and snares ?

    Thanks,
    ksneoh@crystalimage-lcd.com
    www.crystalimage-lcd.com

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

    Default Re: Can I put Contacts form into Index page?

    If you have not built your site yet.......then the index extension can be .php. But if you have already built it and it has been on the internet for a while- it will cause your ranking on the search engines to start over.

    There are no tricks or snares above that. IF I had it to do all over, I would have started my index page as .php.

    Andy
    PHP- is a blast!

  3. #3
    ksneoh is offline Sergeant
    Join Date
    Jan 2008
    Posts
    24

    Default Re: Can I put Contacts form into Index page?

    Many thanks,Andy.

    I would appreciate further clarification on some related "issues" :-

    (1) So, what are the pros and cons when using .php versus .html extensions ? BV seems to be advocating .html throughout; the php was only used when doing up Forms. Why is this so ?

    (2) I have also seen the webpages of other people; the pages have extensions like .htm, .php, and even .asp ... what are the differences ?

    (3) Does it mean that if I use .php for my index page, then all other pages need to have .php ? Or let others remain with .html ?

    (4) Under BV Page Properties, we can set the page as HMTL or PHP. Somewhere in the tutorials, we hear that the extension .html for each page is automatically appended when we publish. For example a page named as "products" will become www.mydomain.com/products.html. The question is : if that page property has been set to PHP, will that published page show up as www.mydomain.com/products.php or will it still be www.mydomain.com/products.html or worst still will it crash ?

    4th question sounds silly. But a clarification would be very much appreciated.

    Thanks again for your patience in bearing with me,
    ksneoh@crystalimage-lcd.com
    www.crystalimage-lcd.com

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Can I put Contacts form into Index page?

    Quote Originally Posted by ksneoh View Post
    Many thanks,Andy.

    I would appreciate further clarification on some related "issues" :-

    (1) So, what are the pros and cons when using .php versus .html extensions ? BV seems to be advocating .html throughout; the php was only used when doing up Forms. Why is this so ?
    BV is a html generator, it creates static pages, and for these, html is enough. Interactivity between the user and the website requires dynamic behaviour, that can only be achieved addin to the page some scripting (usually in Javascript or php, since VH doesn't support ASP). Now, for a page that contains php code to work, it must be published with a php extension.

    Javascript instead may be included in both html and php pages with no problems at all.

    Publishing your pages as php may save you from problems in the future, if you want to add php code in them.

    (2) I have also seen the webpages of other people; the pages have extensions like .htm, .php, and even .asp ... what are the differences ?
    As i said, php is a page that contains php code. htm is the same as html, asp = active server pages. This is another (similar but not the same) programming language that allows dynamic intercative pages.

    (3) Does it mean that if I use .php for my index page, then all other pages need to have .php ? Or let others remain with .html ?
    Every page can be on its own (that is, either php or html) as long as you link them correctly in your menubars. If you don't intend to embedd php code, there in no reason to make your pages php unless, as i said, you want to have the possibility of doing so in the future.

    (4) Under BV Page Properties, we can set the page as HMTL or PHP. Somewhere in the tutorials, we hear that the extension .html for each page is automatically appended when we publish. For example a page named as "products" will become www.mydomain.com/products.html. The question is : if that page property has been set to PHP, will that published page show up as www.mydomain.com/products.php or will it still be www.mydomain.com/products.html or worst still will it crash ?
    A "products" page where you have set the extension to be php will be published as products.php
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


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