This topic is locked

dropdown menus

8/7/2008 12:59:23 PM
PHPRunner General questions
scuba author

I was wondering how I can manipulate the pre-selected phrase "please select" in dropdown menus. I wanna get rid of the "please" - because I am an unpolite guy <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=9224&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' />
Thanks in advance!!

J
Jane 8/8/2008

Hi,
edit BuildSelectControl function in the generated include/commonfunctions.php file for this purpose.

scuba author 8/11/2008

Thanks Jane, but I can't make that work for dependent dropdowns - is there a way? And where can I manipulate the "Record was added" statement?
thanks for helping!!

J
Jane 8/12/2008

Hi,
find and edit following snippet in the commonfunctions.php file:

if($strSize<2)

echo '<option value="">'."Please select".'</option>';

else if($mode==MODE_SEARCH)

echo '<option value=""> </option>';


To change Record was added message edit $message variable in the Before record added event on theEvents tab.

scuba author 8/12/2008

Thanks again for helping. One last question:

How can I make an E-Mail on After Record Added page go out to a statik e-mail adress plus to a variable one?
[codebox]// ** Send data per email ****

$keys["id"]=mysql_insert_id();

$email = "scuba@online.de;["con_email"]";

$message = [/codebox]
the variable one (con_email) is the one given by the customer. He should receive an affirmation-email. The same e-mail should arrive at my location.
thanks in advance!!

J
Jane 8/12/2008

Hi,
try to use this code:

$email = "scuba@online.de,".$values["con_email"];