| | |
php code error
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
-1
#4 25 Days Ago
moved
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
•
•
Join Date: Nov 2009
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Why don't you show the code near those lines? You look like having forgotten a ";" at the end of line 60
Here is the total file, if you would review it I would appreciate it much.
PHP Syntax (Toggle Plain Text)
<script language=javascript> function validateForm(frm) { var pass=frm.pass.value; var repass=frm.repass.value; if(pass!=repass) { alert("Password confirmation failed"); return false; } frm.submit(); } </script> <h1 align=center>Future 2019 AD Autoresponder Settings</h1> <form method=post> <table align=center style="border:1px solid black;" cellpadding=7> <tr><th colspan=2>Administrator login info</th></tr> <tr><td width=150>Change Password:</td> <td width=300><input type=password name=pass size=30></td></tr> <tr><td width=150>Confirm New Password:</td> <td width=300><input type=password name=repass size=30></td></tr> <tr><td colspan=2 align=center> <input type=hidden name=admin value=1> <input type=button onclick="javascript:validateForm(this.form);" value="Save Admin Info"> </td></tr> <tr><td colspan=2> </td></tr> <tr><th colspan=2>General Site Settings</th></tr> <?php if($register) { ?> <tr><td>Double opt-in:</td> <td><select name=optin> <option value=1 <?if(get_setting('optin')) echo 'selected'?>>On</option> <option value=0 <?if(!get_setting('optin')) echo 'selected'?>>Off</option> </select></td></tr> <?php } ?> <tr><td>Email sending*:</td> <td><select name=send> <option value=1 <?if($send) echo 'selected'?>>Immediate</option> <option value=0 <?if(!$send) echo 'selected'?>>Delayed (Cron job)</option> </select></td></tr> <?php if(!$send) { ?> <tr><td>Mails per hour</td> <td><input type=text name=mph value="<?=$mph?>" size=6></td></tr> <?php } ?> <tr><td>Delay between mails**:</td> <td><input type=text name=delay value="<?=$delay?>" size=6> seconds</td></tr> <tr><td>Website name:</td> <td><input type=text name=site value="<?=get_setting("site") size="20"?>" size=30></td></tr> <tr><td>Default sender:</td> <td><input type=text name=sender value="<?=$sender?>" size=30></td></tr> <tr><td colspan=2 align=center><br> <input type=submit name=general value="Save General Settings"> </td></tr> </table> </form>
Thanks again for any help you will offer.
Jim
Last edited by Ezzaral; 25 Days Ago at 6:55 pm. Reason: Added [code] [/code] tags. Please use them to format any code that you post.
0
#6 25 Days Ago
PHP Syntax (Toggle Plain Text)
<?=$delay?>
what i can say (maybe I am not experienced in such things), but if you say this is php, then I think it is quite a bad code here. I think it should be
PHP Syntax (Toggle Plain Text)
<?php echo $delay; ?>
1. always use <?php instead of <?
2. if you want $delay to be printed, write echo $delay
3. add a semicolon ";" at the end of each sentence
Hope that helps you with problem, cause when I opened this file in my server, I saw many strange things, because my server does not understand <? ?> as being php. Fix like this and I am sure you will make a step forward. If I failed at understanding the problem, then I am sorry. I still hope I helped a bit.
•
•
Join Date: Nov 2009
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
look at this place and similar onesPHP Syntax (Toggle Plain Text)
<?=$delay?>
what i can say (maybe I am not experienced in such things), but if you say this is php, then I think it is quite a bad code here. I think it should beSo there are 3 things to fix:PHP Syntax (Toggle Plain Text)
<?php echo $delay; ?>
1. always use <?php instead of <?
2. if you want $delay to be printed, write echo $delay
3. add a semicolon ";" at the end of each sentence
Hope that helps you with problem, cause when I opened this file in my server, I saw many strange things, because my server does not understand <? ?> as being php. Fix like this and I am sure you will make a step forward. If I failed at understanding the problem, then I am sorry. I still hope I helped a bit.
1
#8 25 Days Ago
•
•
•
•
look at this place and similar onesPHP Syntax (Toggle Plain Text)
<?=$delay?>
what i can say (maybe I am not experienced in such things), but if you say this is php, then I think it is quite a bad code here. I think
The problem is this line (Line 61):
PHP Syntax (Toggle Plain Text)
<td><input type=text name=site value="<?=get_setting("site") size="20"?>" size=30></td></tr>
AJAX is not a programming language, scripting language or any other sort of language.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
It is acheived by using JavaScript http functions.
So, AJAX = JavaScript.
•
•
Join Date: Sep 2009
Posts: 525
Reputation:
Solved Threads: 61
0
#9 24 Days Ago
@ez123 : Apart from above, there is one more mistake on the same line-
should be like -
PHP Syntax (Toggle Plain Text)
name=site
PHP Syntax (Toggle Plain Text)
name="site"
"The discipline of writing something down is the first step towards making it happen."
follow me on twitter
follow me on twitter
0
#10 24 Days Ago
•
•
•
•
That is an acceptable way to echo a variable within HTML code,
The problem is this line (Line 61):
size="20" is within the PHP braces.PHP Syntax (Toggle Plain Text)
<td><input type=text name=site value="<?=get_setting("site") size="20"?>" size=30></td></tr>
•
•
•
•
@ez123 : Apart from above, there is one more mistake on the same line-
should be like -PHP Syntax (Toggle Plain Text)
name=site
PHP Syntax (Toggle Plain Text)
name="site"
![]() |
Similar Threads
- PHP Parse error: syntax error, unexpected T_VARIABLE (PHP)
- Error in Google Chekout payment Gateway integration in php code......... (PHP)
- Request.php code error..Help plz! (PHP)
- Index error in PHP code (PHP)
- How to test PHP code in offline in Linux + Apache 2 (PHP)
- Php parser error when xml version is mentioned (PHP)
Other Threads in the PHP Forum
- Previous Thread: Check Boxes Update A Simple Y/N Field in mysql using php
- Next Thread: Displaying files from database
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube






