This topic is locked

If statements/after record added?

10/12/2007 5:21:24 AM
PHPRunner General questions
N
nicolagrimshaw author

Hi everyone,
I'm afraid I'm a real beginner in PHP/MySQL and am attempting a very ambitious project! I've a number of queries which I'm sure can be solved with PHPrunner; I'll set up different topics so they are easier to find if others are experiencing similar issues.
I'm using PHPrunner 4.1 build 320.
I am building a website with lots of information about hotels plus an enquiry form for customers.
On entry of particular fields such as number of children I would like other fields to 'appear' preferably on the same page or as a popup to enter child ages. This would also apply, for example, if a tick box was completed to indicate a hotel has a spa when I would then like a secondary field for further information.
I know that I could easily have all the fields displayed on one form but as there are so many it will look tidier this way and I figured if I could understand how to do it it wold save 'messing around' later.
I'm assuming I need to insert custom code after record added(?) on the add page?
Thanks in advance

J
Jane 10/12/2007

Hi,
to hide some filed on the add/edit pages using JavaScript you need to edit BuildEditControl function in the generated include/commonfunctions.php file manually. You should be familiar with JavaScript for that.

Here are some helpful links:

http://www.w3schools.com/htmldom/prop_style_display.asp

http://www.devx.com/tips/Tip/13638

Unfortunately we don't have a ready to go solution for this.

N
nicolagrimshaw author 10/16/2007

Hi,

to hide some filed on the add/edit pages using JavaScript you need to edit BuildEditControl function in the generated include/commonfunctions.php file manually. You should be familiar with JavaScript for that.

Here are some helpful links:

http://www.w3schools.com/htmldom/prop_style_display.asp

http://www.devx.com/tips/Tip/13638

Unfortunately we don't have a ready to go solution for this.


Hi Jane,
Tnaks for the tip. I've not had time to do anything with it yet as it is a bit beyond my capability. When I've jot a spare hour I'll have a look and see if I can crack it.
Thanks again