+ Reply to Thread
Results 1 to 51 of 51

Thread: PHP question
      
   

  1. #1
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default PHP question

    Hi

    I´m having a rather hard time figuring out how to protect the member area on my site. I´m using php script from a site called Sentrylogin. It all looks good, but I must be doing something wrong because I keep getting an "HTTP 404 error" when trying to connect to the login page. I have followed the following procedure so far:

    1: Got scripts (login form and topcode) from Sentrylogin for my login page and changed the extension from html to php in BlueVoda page properties (do I need to do anything else when renaming the extensions???)
    2: Placed keyfile in a folder I named "member"
    3: Were in doubt about placing a Meta redirect (maybe I encountered the first problem here. You tell me )
    4: Uploaded the login page
    5: Placed PHP Page Protection Topcode (on all of my protected pages (not using Access levels since I don´t know what it is) and changed the extensions from html to php in BlueVoda page properties
    6: Again encoutered problems setting up a Meta redirect
    7: Hyperlinked from my index page to my login page like this: mysite.com/login.php (is this neccesary or should I just link to "mysite.com/login")
    8: Uploaded pages to folder public_html/member (where keyfile is placed)

    Basically it... I tend to think the mistake is that I hyperlinked the wrong way or that I screwed up the extensions in some way. Or maybe the script is placed wrong or maybe the fact that I placed the protected pages in a different folder than "public_html" called "public_html/member"

    I hope someone can guide me step by step or just point out any potential error(s) I have made.

    Thanks

    Morten Fabrin

  2. #2
    Join Date
    Feb 2006
    Location
    Kings Lynn, Norfolk (UK)
    Posts
    8,719

    Default Re: PHP problem

    Hi, it’s a bit hard to say without knowing which program it is & for someone to see the script you are working on or the url of the page.
    You will need to pop your ID or website in your signature.
    (User CP top of page)

  3. #3
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    Website: www.scandiaband.com

    PHP Login Form Topcode:

    <?php $WebKey='DOQyHLPo0g1ffsdc'; ?><?php $FormView=1; ?><?php $Sentry_ID=904; ?><?php include('Sentry_keyfile.php'); ?><!-- Sentry PHP Login Script v.2.0.4 - Sentrylogin.com -->

    PHP Page Protection Topcode:

    <?php $WebKey='DOQyHLPo0g1ffsdc'; ?><?php $MembersOnly=true; ?><?php $Sentry_ID=904; ?><?php include('Sentry_keyfile.php'); ?><!-- Sentry PHP Page Protection v.2.0.3 - Sentrylogin.com -->

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

    Default Re: PHP problem

    Don't know about your script, because it uses a file and not a database check. If you wish have a look at http://www.dbtechnosystems.com/examples.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!


  5. #5
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    Is it necessary to put your protected pages and files inside the CGI folder?

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

    Default Re: PHP problem

    No. Protected pages have a piece of code at the beggining of the page code, which checks if the user is logged in or not. If he is logged in, he can view the page, otherwise access id denied and the visitor gets redirected to the loggin (or registration) page
    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!


  7. #7
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    Good...

    Could you also please clarify this: In Bluevoda when you select the "php extension" in "page properties"? Is that it? Is the page automatically a php file/page at this point ready for password protection? Or will it first be a php when uploaded to server?

    And thanks for your patience, but i&#180;m very new at this...

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

    Default Re: PHP problem

    If you select the php extension, the page will be published as php. This doesn't mean that there is php code in it. There will be no php code until you place some in it. The php extension though is necessary for the server to know that it has to look for php commands in the page code. To protect your pages you need to embedd the php protection code at the start of the page.
    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!


  9. #9
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    And when linking to the protected pages, will I have to manually write php, for instance like this: "www.scandiaband.com/login.php"?
    And let&#180;s say the "login.php" is located in folder named "member" will i have to link like this: "www.scandiaband.com/member/login(php or not)?

  10. #10
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    And thank you for the quick replies....

  11. #11
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    And when linking to the protected pages, will I have to manually write php, for instance like this: "www.scandiaband.com/login.php"?
    And let&#180;s say the "login.php" is located in folder named "member" will i have to link like this: "www.scandiaband.com/member/login(php or not)?

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

    Default Re: PHP problem

    when you link to a php page, ofcourse you need to link like www.scandiaband.com/login.php

    Then again, if the page is in a folder, called "member", then yes, the link should be www.scandiaband.com/member/login.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!


  13. #13
    monofon is offline Corporal
    Join Date
    Jan 2007
    Posts
    13

    Default Re: PHP problem

    Thank you very much

    Very useful....

  14. #14
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP + HTML question

    Hi Folks,

    Using BV is great.

    My question is this?

    When we publish a page (i.e. application.bvp) am I correct in saying that depending on the setup on the page it will produce a application.php file or a application.html file.

    That being the case where would those files be stored and are they accesible?

    Your help here would be most appreciated

    Regards
    ROb

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

    Default Re: PHP question

    The .bvp file, when published, is converted to html code (exception made for eventuall external (php , javascript etc) code embedded in the page.

    The files are published as html or php depending on the page settings, in your site (in most cases, in the public_html folder)

    The files are accessible only through FTP directly from your site, not available on your computer.
    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!


  16. #16
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question Re: PHP question

    Hi NavalDesign,

    Thanks very much for the rapid reply.

    As they are created in your explanation and are accesible through FTP, can they be copied or transfered to my computer in the ".html" / ".php" format?

    Bearing this also in mind when would one create .php files rather than .html and how do they differ specifically to one another. I ask this question so as to know which is the better way to develop pages going forward.

    Regards
    ROb

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

    Default Re: PHP question

    Yes, you can transfer the html or php files back to your computer. But why would you do that ?

    PHP is only for php pages. If you have some php scripting in your pages, then you need to publish them as php. Otherwise html is ok
    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!


  18. #18
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi Navaldesign,

    There is no specific reason other than curiosity. I dable with other sites and programmes and would merely like to know.

    If this is possible please tell me how?

    The other thing I am trying to find out - Is there a method I can download BV to disc (the program) so that I have a bootable copy?

    Is there a way of saving the whole webdesign in its whole to disc as backup?

    If I start desiging another site will it affect anything I have currently done?

    So many questions.

    Regards
    ROb

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

    Default Re: PHP question

    You can download the html files directly from the server using FTP.
    No bootable copy is possible. Befor ANY programm can run under windows, it needs to be installed (and, by doing so, declared to the OS (windows in this cae)

    You can save all of your website work on a memory stick or burn a CD or save it another disk (if you have more than one) just as you would do for any other file. MAke sure to also save the images.
    A good tip is to have a "myimages" folder inside your BV folder, and save all the images there, just in case you need to restore from your backup.

    No, creating a new website will not affect anything. Create a new folder, inside your BV folder, called i.e. "site2" and save all the files of the new site in there, so there will be no conflict with eventually same name files of the first site.
    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!


  20. #20
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: HTML / PHP question?

    HI Navaldesign,

    I publish my page as per normal (call it rob.html or rob.php) when I go to FTP I do not see the file - with the extension .html or .php

    How do I do about finding this file?

    I do realise that .bvp is a format we use here. Is there a way to save the file in .html or .php format without publishing but yet having the desired effect.

    Regards
    ROb

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

    Default Re: HTML / PHP question?

    Quote Originally Posted by Rob (SA)
    HI Navaldesign,

    I publish my page as per normal (call it rob.html or rob.php) when I go to FTP I do not see the file - with the extension .html or .php

    How do I do about finding this file?

    I do realise that .bvp is a format we use here. Is there a way to save the file in .html or .php format without publishing but yet having the desired effect.

    Regards
    ROb
    1. If you have published it, it MUST be there.
    2. You can view the page html and copy the code, paste it in Notepad, and Save As . However, most bv pages, have some dynamic features related to built in functionalities (links, drop downs, galleries etc). Those will only work when the page is published, as some parts of the code are uploaded automatically (but in separate files) when you publish. By just copying the code, all of these will remain out, so they will not work. Also images, will not appear as by copying/pasting the code, there is not the path to the images, nor the images themselves.
    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!


  22. #22
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi Navaldesign,

    Thanks for your quick reply as usual - I hope you are keeping well

    Regards
    Rob

  23. #23
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question Re:Form submission

    Hi Naval,

    This might not be the correct thread but I have a question /s for you (again)

    I am really getting much better in developing my site and with your help I know I will get to a final acceptable product.

    I have created a page http://www.gnjgf.co.za/application.php that can be veiwed currently.

    A) I would to get the website to submit that page as it stands in a completed form (i.e.with all the relavant spaces filled in) to my email.

    B) The information that is entered on this form I would eventually like to get to a database?

    I know we have chatted previously about some of this- Is it difficult to learn and do by myself ? and does BV have all the facilities to be able to see this through to the end

    Kind Regards
    Rob

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

    Default Re: PHP question

    If you use ABVFP it will email you the form info. It can also store the info in a database table.

    You don't need to learn anything for doing this.

    Viewing the info, from the database, is an entirely different thing. You can view the info (with many difficulties) through your CP, MySQL section, phpMyAdmin. However, phpMyAdmin was NOT designed for browsing and extracting info from the database, it is more a database management tool.
    To view the info easily, and be able to sort it, search it, edit, etc. you need a cutom made script, that allowes to do so.

    Doing it in BV? Yes, you could, i suppose, but only after learning a lot about php, MySQL, and how to combine the above with BV. Say some momths of work, starting from zero.

    You know my contact details if you need something.
    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!


  25. #25
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: FORM submission

    Hi Navaldesign,

    I have I think made the form for membership application as per your tutorial.

    However when submitting I get no response of any kind.

    Is there then something wrong with the script or is it going to a place I cannot veiw.

    http://www.gnjgf.co.za/application.php is the place where this form can be veiwed.

    Regards
    Rob

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

    Default Re: PHP question

    I have seen your form, there are some problems, but those would not prevent it from submitting.
    So i suppose it is your script.
    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!


  27. #27
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Thumbs up Re: FORM submission

    Hi Navaldesign,

    You mention a few problems? Please would you expand on that - that I may make it better.

    Would you care to look at the script for me please?

    Obviously I have other pages that are similar and I would therefor have to go through a similar process - so informing me of the error/s would help a great deal.

    Regards
    ROb

  28. #28
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question Re:Photo & text

    Hi George,

    Maybe not the right thread.

    When we do our posting I notice the following:
    Your photograph is next to your name - how do I get mine to the same position?

    On the same postion as my current photo I see text that says warn % - what is this about and why is it only on my tab?

    Thanks for your help

    Regards
    Rob

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

    Default Re: PHP question

    Your checkboxes all have the same name: ORINARY
    In the Contact Details, the fields are named "Number"
    In the Badges & Ties box, the second checkbox can't be clicked. (in IE) because it is probably covered by something.

    Then, if you want to have some security built in in your form, you need to set filed lenghts. If you are going to use ABVFP then you have to use the field name extensions also for telling the script what kind of fields it must create in the database.

    However, this is a form containing 33 fields. Viewing this amount of info without a database interface, through phpMyAdmin, could become somewhat hard.....

    As for the php script, yes, post it here and either me or Andy or David will have a look. But if you need a free script to store the info in the database, then ABVFP is your only option.
    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!


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

    Default Re: Photo & text

    Quote Originally Posted by Rob (SA)
    Hi George,

    Maybe not the right thread.

    When we do our posting I notice the following:
    Your photograph is next to your name - how do I get mine to the same position?

    On the same postion as my current photo I see text that says warn % - what is this about and why is it only on my tab?

    Thanks for your help

    Regards
    Rob
    For the pic: go in your User control Panel, and click on Edit Avatar. Follow the instructions.

    Warn: this is the warning scale: moderators and admin can warn members for improper postings or behaviour. Every user only can see his own warning icon. And, as long as it is 0%, means that you are ok.
    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!


  31. #31
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi George,

    Thanks for the general info.

    Regards
    Rob

  32. #32
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Exclamation Re: FORM submission

    Hi George,

    Thanks for the highlighters on the form - I will go about and ammend them.

    I actually thought I was using ABVFP when creating this form.

    I have posted the script below, it seems like such a huge task - I hope it helps.

    Regards
    ROb

    Code deleted by Navaldesign

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

    Default Re: PHP question

    Rob, what you have posted was your form page code. The action script, is a totally different thing, and it is not even to be included in this page. Please download the ABVFP and read the Word file in the folder "Tutorial"
    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!


  34. #34
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    HI George,

    Nearly through the installation of ABVFP. Steps 1-7 complete.

    Step 7 - i did not add an additional user and the database reads as eghfya_ABVFP.

    I have tried to type http://www.oryan-projects.com/ABVFP/dbts_install.html to complete step 8 but no success.

    I then tried with then name eghfya_ABVP instead of ABVFP still no success.

    what is the step to follow now?

    Regards
    Rob

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

    Default Re: PHP question

    The correct would be http://www.oryan-projects.com/ABVFP/dbts_install.php not html. Do i have a mistake in the Tutorial ? if yes, please let me know.

    However, i tried to find it, and i can't. You have by chance deleted everything trying to start from scratch ?

    The correct database is eghfya_ABVFP and the user should be eghfya_username. Click on the red icons in the installation wizard to get a popup with help.
    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!


  36. #36
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi George,

    Thanks for the reply - the Tutorial says .html - I willtry the .php method

    Regards
    Rob

  37. #37
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi George,

    I tried the .php route - no luck here either

    Regards
    Rob

  38. #38
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Arrow Re: ABVFP

    Hi George,

    When all else fails - start again.

    I have done that and we have progressed to the installation page:

    We get the following error:

    dbts_ABVFP_install1.php Line 289: Invalid Query: INSERT command denied to user 'eghfya_fmp'@'localhost' for table 'ABVFP_Forms' Please contact support at info @ dbtechnosystems. com

    I trust this means something to you and that you can help.

    Regards
    ROb

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

    Default Re: PHP question

    You are using the user created for the database of FMP but you have probably NOT added this user to the database of ABVFP
    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!


  40. #40
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Arrow Re: ABVFP

    Hi George,

    Progress - I have managed to submit the form but cannot see a result. I get into the ABVFP site and go through the relavant steps filling info on the "autoresponder" sheet.

    CLicked on memorise settings.

    Do I know move forward and design a form or does it automatically select my previous form and make modifications to the database?

    I was also expecting to get info back from my email rob@oryan-projects.com but nothing.

    Oh by the way I dont actually spend my whole day at the computer although today it must have seemed like it -thanks again for your support

    Regards
    Rob

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

    Default Re: PHP question

    I'm not sure i follow you.
    1. No result ? what does that mean ?
    2. No, every form you create has its own ID number, and you must set it up either by configuring it from scratch, or by using the settings of the one you have already configured, as template and only change the settings that need to be different.
    3. If you don't get any mail, you have done something wrong. Look again at your settings

    What's your form URL ?
    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!


  42. #42
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: PHP question

    Hi George,

    I thought by making the submissions in ABVFP on completion of the application form I have previously created - and its sumbission.

    I thought I would have received a page similar to my application form with all the data filled in.

    Its obviously not that simple - for this character - Ill have to concentrate harder.

    My bigger concern is that I dont get any mail that is forarded to rob@oryan-projects.com. Maybe my settings and configuration there to are all not what they should be.

    The chicken and the egg scenario - which came first.

    I guess the email thing needs to be tested first and then the form.

    Regards
    Rob

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

    Default Re: PHP question

    Rob,

    you first need to solve the email problem. I have asked for the form URL, so i can check if the settings of the form are cottect or not. Then i would also need to set up correctly ABVFP to process your form, which i can't do without your loggin details.

    Then the email appearance: the email ABVFP sends is a plain text one. The html version of he email that you might have received from my autoresponder, is a special feature only available to paid for installations, which we perform on customer's request. There is no way you can do it with the free version.

    Please provide the form URL, so i will at least see if the form is setup correctly.
    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!


  44. #44
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Exclamation Re: ABVFP

    Hi George,

    I have submitted the dat I could on your standard form ,re URL's etc.

    I so hope this info will assit you / me to get this form process moving.

    The email thing I surpose will follow this receipt of info.

    Regards
    ROb

  45. #45
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Arrow Re: ABVFP vs Form Make PRO

    Hi George,

    How does ABVFP compare with Form Maker Pro?

    Having downloaded ABVFP I dont want to go and download FMP to end up with the same capabilitites.

    Bearing in mind the path we followed yesterday -will this software give me a form as I see it after completion of the required data?

    If not is there software available that I can get to give me this effect?

    I agrre with you the costs you expressed yesterday are a bit over the mark - hence me looking for alternatives.

    The page that I am hoping to create - what term do you use to describe it? Is it a log template?

    Thanks for all your patience and all your replies thus far.

    Oh last but not least - how do I resolve the emial problem?

    Kind Regards
    ROb

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

    Default Re: ABVFP vs Form Make PRO

    How does ABVFP compare with Form Maker Pro?

    Having downloaded ABVFP I dont want to go and download FMP to end up with the same capabilitites.

    Bearing in mind the path we followed yesterday -will this software give me a form as I see it after completion of the required data?

    No, NOT ONE form processor in the world will do that for you. It requires custom scripting in mixed php/html to get an email with a look similar to your form. As said, it has to be custom made, and will only work for the initial design, if the form design gets changed, the script will need to be changed also

    If not is there software available that I can get to give me this effect?

    As already said, no.


    The page that I am hoping to create - what term do you use to describe it? Is it a log template?

    Don't know of any particular term. Is is simly a signup form.

    Oh last but not least - how do I resolve the emial problem?

    I can't know what the problem is. Since you have made the installation yourself, i can't know the settings that you have used. To be honest, looking your form code, i beleive that the form has not been setup correctly (the hidden field with the form ID is missing) and then, i don't even know how you have setup (if you did) the form in ABVFP.
    Kind Regards
    ROb[/quote]
    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!


  47. #47
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Default Re: ABVFP vs Form Make PRO

    Thanks George.

    Its all quite clear to me

    Regards
    Rob

  48. #48
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Question Re: Script - Submission of form

    Hi Folks,

    I am not sure if this script is correct?

    Can anyone help?

    <script language="php">
    $email = "email";
    $mailto = "robhar@mweb.co.za";
    $mailsubj = "Feed back submission";
    $mailhead = "From:email";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
    if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
    </script>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <TITLE>feedback</TITLE>
    <META name="KEYWORDS" content="GAUTENG,NORTH">
    <META http-equiv="Page-Enter" content="revealTrans(Duration=1,Transition=2)">
    <META name="GENERATOR" content="Created by BlueVoda">
    <STYLE type="text/css">
    div#container
    {
    width: 1190px;
    position: relative;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    }
    body
    {
    text-align: center;
    margin: 0;
    }
    </STYLE>
    <SCRIPT type="text/javascript" src="./jscookmenu.js"></SCRIPT>
    </HEAD>
    <BODY bgcolor="#FFFFFF" text="#0000FF" style="SCROLLBAR-FACE-COLOR:#AAD6EA;SCROLLBAR-ARROW-COLOR:#0000FF;SCROLLBAR-3DLIGHT-COLOR:#808080;SCROLLBAR-DARKSHADOW-COLOR:#000000;SCROLLBAR-HIGHLIGHT-COLOR:#FFFFFF;SCROLLBAR-SHADOW-COLOR:#808080;SCROLLBAR-TRACK-COLOR:#D4D0C8;">
    <DIV id="container">
    <DIV style="position:absolute;left:0px;top:0px;width:85 0px;height:1527px;z-index:26" align="left">
    <FORM name="feedback" method="POST" action="action.php" enctype="multipart/form-data">
    <DIV style="position:absolute;left:490px;top:200px;widt h:270px;height:240px;z-index:0" align="left">
    <IMG src="bv01126.gif" align="top" alt="" border="0" width="270" height="240">
    </DIV>
    <DIV style="position:absolute;left:620px;top:50px;width :130px;height:18px;background-color:#FFFFFF;z-index:1" align="center">
    <FONT style="font-size:16px" color="#0000FF" face="Arial">F E E D&nbsp;&nbsp; B A C K</FONT>
    </DIV>
    <DIV style="position:absolute;left:620px;top:120px;widt h:40px;height:15px;z-index:2" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">DATE</FONT>
    </DIV>
    <DIV style="position:absolute;left:510px;top:210px;widt h:60px;height:15px;z-index:3" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Cell Phone</FONT>
    </DIV>
    <DIV style="position:absolute;left:510px;top:250px;widt h:72px;height:15px;z-index:4" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Work phone</FONT>
    </DIV>
    <DIV style="position:absolute;left:510px;top:370px;widt h:39px;height:15px;z-index:5" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">e-mail</FONT>
    </DIV>
    <INPUT type="text" style="position:absolute;left:580px;top:210px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:6" size="32" name="Cell number" value="" maxlength="20">
    <INPUT type="text" style="position:absolute;left:580px;top:250px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:7" size="32" name="Work Phone" value="" maxlength="20">
    <INPUT type="text" style="position:absolute;left:580px;top:370px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:8" size="32" name="E mail" value="" maxlength="25">
    <INPUT type="text" style="position:absolute;left:580px;top:330px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:9" size="32" name="Fax Details" value="" maxlength="20">
    <DIV style="position:absolute;left:510px;top:330px;widt h:62px;height:15px;z-index:10" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Fax details</FONT>
    </DIV>
    <DIV style="position:absolute;left:40px;top:160px;width :250px;height:15px;z-index:11" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">OUR COMMENTS RELATE TO:</FONT>
    </DIV>
    <DIV style="position:absolute;left:186px;top:12px;width :572px;height:29px;background-color:#FFFFFF;z-index:12" align="center">
    <FONT style="font-size:24px" color="#0000FF" face="Arial"><B>GAUTENG NORTH JUNIOR GOLF FOUNDATION</B></FONT>
    </DIV>
    <INPUT type="text" style="position:absolute;left:100px;top:230px;widt h:180px;font-family:Comic Sans MS;font-size:10px;z-index:13" size="36" name="First Name" value="" maxlength="25">
    <INPUT type="text" style="position:absolute;left:290px;top:230px;widt h:180px;font-family:Comic Sans MS;font-size:10px;z-index:14" size="36" name="Surname" value="" maxlength="25">
    <DIV style="position:absolute;left:490px;top:160px;widt h:180px;height:15px;z-index:15" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">CONTACT INFORMATION</FONT>
    </DIV>
    <INPUT type="text" style="position:absolute;left:580px;top:290px;widt h:160px;font-family:Comic Sans MS;font-size:10px;z-index:16" size="32" name="Home Phone" value="" maxlength="20">
    <DIV style="position:absolute;left:510px;top:290px;widt h:72px;height:15px;z-index:17" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">Home phone</FONT>
    </DIV>
    <select name="Gender" multiple size="1" style="position:absolute;left:40px;top:230px;width :52px;font-family:Comic Sans MS;font-size:10px;z-index:18">
    <option value="Second Member">Mr.</option>
    <option value="Miss">Miss</option>
    </select>
    <select name="Our Comments relate to the" multiple size="1" style="position:absolute;left:40px;top:180px;width :240px;font-family:Comic Sans MS;font-size:10px;z-index:19">
    <option value="WEBSITE">WEBSITE</option>
    <option value="TOURNAMENT ">TOURNAMENT</option>
    <option value="GAUTENG GOLF UNION">GAUTENG GOLF UNION</option>
    <option value="ERNIE ELS TOURNAMENTS ">ERNIE ELS TOURNAMENTS </option>
    <option value="S A G A ">S A G A</option>
    <option value="DISCIPLINE ">DISCIPLINE </option>
    <option value="RULES ">RULES </option>
    <option value="SCHOOL GOLF">SCHOOL GOLF</option>
    <option value="CLUB MATTERS">CLUB MATTERS</option>
    <option value="OTHER">OTHER</option>
    </select>
    <DIV style="position:absolute;left:40px;top:260px;width :250px;height:15px;z-index:20" align="left">
    <FONT style="font-size:11px" color="#0000FF" face="Comic Sans MS">AND CAN BE READ AND UNDERSTOOD THAT</FONT>
    </DIV>
    <TEXTAREA name="and it can be understood that:" style="position:absolute;left:40px;top:280px;width :430px;height:160px;font-family:Comic Sans MS;font-size:10px;z-index:21" rows=10 cols=82></TEXTAREA>
    <INPUT type="text" style="position:absolute;left:668px;top:120px;widt h:88px;color:#0000FF;font-family:Comic Sans MS;font-size:12px;z-index:22" size="14" name="Date" value="" maxlength="15">
    <DIV style="position:absolute;left:380px;top:510px;widt h:51px;height:18px;z-index:23" align="left">
    <STYLE type="text/css">
    .ThemeDefault8Menu,.ThemeDefault8SubMenuTable
    {
    font-family: Comic Sans MS, arial, sans-serif;
    font-size: 10px;
    color: #FFFFFF;
    background-color: #3C32B8;
    font-weight: normal;
    padding: 0;
    border: 0;
    cursor: pointer;
    }
    .ThemeDefault8SubMenu
    {
    position: absolute;
    visibility: hidden;
    z-index: 100;
    border: 0;
    padding: 0;
    }
    .ThemeDefault8SubMenuTable
    {
    border-top: 1px solid white;
    }
    .ThemeDefault8SubMenuTable TD
    {
    white-space: nowrap;
    }
    .ThemeDefault8MainItem,.ThemeDefault8MainItemHover ,.ThemeDefault8MainItemActive,
    .ThemeDefault8MenuItem,.ThemeDefault8MenuItemHover ,.ThemeDefault8MenuItemActive
    {
    white-space: nowrap;
    }
    .ThemeDefault8MainItemHover,.ThemeDefault8MainItem Active,
    .ThemeDefault8MenuItemHover,.ThemeDefault8MenuItem Active
    {
    color: #FF0000;
    background-color: #E2E2E2;
    font-weight: normal;
    font-size: 10px;
    }
    .ThemeDefault8MenuSplit
    {
    height: 1px;
    margin-top: 1px;
    margin-bottom: 1px;
    overflow: hidden;
    background-color: inherit;
    border-top: 1px solid white;
    }
    .ThemeDefault8MenuVSplit
    {
    width: 1px;
    margin: 0px;
    overflow: hidden;
    background-color: inherit;
    border-right: 1px solid white;
    }
    </STYLE>
    <SCRIPT type="text/javascript">
    <!--
    var bvMenu8 =
    [
    [null, 'H&nbsp;O&nbsp;M&nbsp;E', 'http://www.gnjgf.co.za/', '_self', 'H O M E']
    ];
    -->
    </SCRIPT>
    <DIV ID=MenuID8></DIV>
    <SCRIPT type="text/javascript">
    <!--
    var cmThemeDefault8 =
    {
    mainFolderLeft: '',
    mainFolderRight: '',
    mainItemLeft: '',
    mainItemRight: '',
    folderLeft: '',
    folderRight: '',
    itemLeft: '',
    itemRight: '',
    mainSpacing: 0,
    subSpacing: 0,
    delay: 100
    };
    var cmThemeDefault8HSplit = [_cmNoAction, '<TD colspan="3" style="height: 3px; overflow: hidden"><DIV class="ThemeDefault8MenuSplit"></DIV></TD>'];
    var cmThemeDefault8MainHSplit = [_cmNoAction, '<TD colspan="3"><div class="ThemeDefault8MenuSplit"></DIV></TD>'];
    var cmThemeDefault8MainVSplit = [_cmNoAction, '<DIV class="ThemeDefault8MenuVSplit"></DIV>'];
    cmDraw('MenuID8', bvMenu8, 'hbr', cmThemeDefault8, 'ThemeDefault8');
    -->
    </SCRIPT>
    </DIV>
    <INPUT type="submit" name="" value="Submit" style="position:absolute;left:40px;top:450px;width :60px;height:24px;z-index:24">
    <INPUT type="reset" name="RESET" value="Reset" style="position:absolute;left:700px;top:450px;widt h:60px;height:24px;z-index:25">
    </FORM>
    </DIV>
    <IMG src="Daisy.jpg" alt="" align="top" border="0" width="134" height="140" style="position:absolute;left:0px;top:0px;width:13 4px;height:140px;z-index:27">
    <HR noshade size="5" width="760" color="#0000FF" style="position:absolute;left:0px;top:147px;width: 760px;height:5px;z-index:28">
    <HR noshade size="3" width="760" color="#0000FF" style="position:absolute;left:0px;top:487px;width: 760px;height:3px;z-index:29">
    </DIV>
    </BODY>
    </HTML>

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

    Default Re: PHP question

    Ok Rob, you are somewhat confused aboyt forms.

    1. The script must NOT be in the same page as the form. If the form page is called. i.e. form.html, and the form action is "action.php" (as it is in your form), then the php script should be in the Thank you (or confirmation, call it as you like) page.
    2. Your script should be this one:

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "order@example.com";
    $mailsubj = "
    Enter Your Subject Here";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>


    replace the parts in Blue and ONLY THOSE with your own email address ans your mail subject.


    3. Place the above script, with the changes, to the Start of Page or Inside body of your confirmation or Thank you page.

    4. Delete the script from the above page (form page).


    Save the two pages and publish them.
    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!


  50. #50
    Rob (SA)'s Avatar
    Rob (SA) is offline Lieutenant Colonel
    Join Date
    Nov 2006
    Location
    Centurion, South Africa
    Posts
    580

    Arrow Re: email in forms

    Hi George,

    Thanks for the replay re:script in forms.

    A question - If there are multiple forms for submission would I have to create seperate thank you notes (action forms)?

    When you refer to the action form can it be like any other file and not specifiaclly action?

    Regard
    Rob

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

    Default Re: PHP question

    I never mentioned "action form", i mentioned "form action" which means the action that will take place when the form info is submitted.

    The action script can be stand alone (not embedded in any html page) and in that case the code should be somewhat modified, to send the visitor to the Thank you Page after sending the email, OR, it can be embedded in the Start of Page or in the Inside Body Tag of the Tankyou page itself. If you want to have error page as well, the script has to be also modified. And it MUSt be pasted in the Start of Page, it is no longer ok in the Inside Body.

    The name of of the script is not important, it can be "action.php" or "contact.php" or whatever you like. Just make sure that the form action (what you type in the field "action" of the form) is the same.

    Please understand that the script presented in the tutorial (the one you posted above) is a very essential script, used only for training purposes. It will work, but it doesn't offer any antispam security, nor error reporting, nor database storing. Tht's why ABVFP was born. It allows all of the above (plus many other cool features) without any scripting.

    Last, yes, if you don't mind creating a generic Thankyou page that would be ok for all your forms, then the same script and the same Thankyou page can be ok for all your forms. That's another advantage of ABVFP: it will allow personalized messages, emails, autoresponders, error pages and thenkyou pages for each form.
    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