You can't pass the parameter $search_str directly unless you declare it a global. Specify another var in your function, and call it with another var. Like this:
[COLOR=blue]
<?php
function find_more_hits($s)
for ($i=1; $i >< strlen($s); $i++) {
echo $s;
}
}
?>
// html tags for...
Don't let validation scare you off. At it's simplest, it merely means making sure that the info that the user inputs is what you expect it to be. For instance, if you are expecting an integer input, and the user submits a character string, will it crash you, or have you protected yourself by...
Use add/remove programs from the Control Panel. It should be there if you installed PHP with the Win32 package. If not, you'll have to get the info from the PHP site as to what files go where and what registry changes are made and take care of it that way. That's a somewhat dangerous way to do...
You should ALWAYS validate user input, not only to protect yourself, but to filter out user stupidity %-)
I don't believe there's any need to pass the _POST info to another var tho, unless for some reason it's more handy in a var than in an array. You can perfom the same validation in either case.
In your form, set a hidden field to anything:
[COLOR=blue]
<td>
<input type="hidden" name="formupdate" value="form1">
</td>
[COLOR=black]
As soon as you load the page, check the post vars to see if the var is set:
[COLOR=blue]
<?php
//first check to see if...
The argument of defined() must be quoted:
define ("WEEK", $week);
if (defined("WEEK")){
echo "week IS defined.";
}
try that...
cheers
sleipnir's point was a good one. You wouldn't have to change the DB structure. Just have the user pick the room they want to reserve and for what day, and show them a schedule of the room for that day, and let them pick the time span they want, or choose a different day.
As it is, the user...
About line 11 :
from Faq_Topics where topic_id = $_GET[topic_id]";
$_GET[topic_id] - you should always use quotes around an associative array index. As it is, it is an undefined constant, and has to be evaluated to a string value. It's POSSIBLE that it isn't evaluating correctly in your...
It's going to depend a lot on whether you like the way that MX writes your code for you. You will find that many (or some of) the coding techniques it writes are a little convoluted and maybe larger than you'd have written yourself. However, they do get the job done. If your aim is to develop...
After you've recorded your action, expand the steps in the pallette. On the step for opening the file, turn on the dialogue icon (the square box between the check mark and the steps stack). This will force a prompt when the action reaches this stage.
Some (most?) web servers don't play nicely with spaces in file/path names. You shouldn't use them.
If you've tried and tried and you still can't see the photo, you might try getting rid of your cache thru the IE Tools>Internet options>Temporary Internet Files on the General tab. Click on delete...
John,
'Class' tells the browser to look in a style sheet for directions. 'Style sheet' is typically used to refer to a separate file (it's an old term from print publishing used to describe a doc listing standards for layout, font, etc.), but can also be embedded in the head section of the doc...
Why are you going to all this trouble to find dll's? If your install is bad, it could be due to not following the directions about shutting down all windows programs before running the installer.
Uninstall and reinstall.
Unless, of course, you are trying to install a pirated copy of PS7...
And every way you learn to work around a problem is one more tool for your toolbox - not to mention the satisfaction of FINALLY FIGURING IT OUT!
good job[2thumbsup]
Pick up a good book on illustrating with freehand. Unless your graphic includes an actual photograph, most anything can be done as vector graphics. Do you have a drawing of what you want to do that you can post somewhere?
If you use freehand or illustrator from the start it won't really matter what size you start with - you're using vector graphics, which are just mathematical representations of lines and curves. They can resize infinitely and you needn't worry about resolution like you do with a bitmap image or...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.