...

View Full Version : Help with conditional onclick



raymanw
10-26-2006, 04:01 PM
Please help me with this one:

<input type=button value="<?php echo $button_caption ?>" onclick="if (verifyChange() == true) {location.href=$_SERVER['PHP_SELF'].'?homeinclude=member&pageaction=signupok'}">

I get the "missing name after . operator" error.

Thanks

Mwnciau
10-26-2006, 04:55 PM
<input type=button value="<?php echo $button_caption; ?>" onclick="if (verifyChange() == true) {location.href='<?php echo $_SERVER['PHP_SELF']; ?>?homeinclude=member&pageaction=signupok'}">

raymanw
10-27-2006, 03:58 AM
Works great.
Thanks.
:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum