-
Posts
1,437 -
Joined
-
Last visited
Never
Posts posted by papaface
-
-
Something like this should do it:
[code]
// message
if ( !empty( $dfcontact["field"]["message"]["display"] ) ) {
echo "<tr>\n";
echo "<td colspan=\"2\" valign=\"top\"><span>Message:</span><br /><textarea name=\"message\" class=\"inputbox\" cols=\"40\" rows=\"5\">" . ( !empty(
$_REQUEST["message"] ) ? htmlentities( stripslashes( $_REQUEST["message"] ) ) : "" ) . "</textarea>" . ( !empty(
$dfcontact["field"]["message"]["duty"] ) ? "*" : "") . "</td>\n";
echo "</tr>\n";
}
[/code] -
I believe it is simply a case of working up from the lowest directory:
If libs is in public_html, or your wwwroot then use include("/libs/main.php");
I believe that will work... -
Do you get an error? If so, what?
-
You would put the form in php:
[code]
<?php
echo "<form action=\"". $_SERVER["PHP_SELF"] ."\" method=\"post\" enctype=\"multipart/form-data\">
<input type=\"text\" name=\"username\" value=\"".$variable."\">
<input name=\"submit\" type=\"submit\" />
</form>";
?>
[/code]
Where $variable, would be the place you would want your user data to show. -
I dont think you are using the move_uploaded_file function correctly.
You should have something like
[code]move_uploaded_file($_FILES["image"]["tmp_name"], "pics/" . $_FILES["image"]["name"]);[/code]
Hope that helps. Add me to msn if you are still having a problem. papa_face {(at)} hotmail.com
New to Php
in PHP Coding Help
Posted
[code]<?php
$name = "Wata"
$percent = 4
if ($percent*4 >= 70) {
echo " {$name}, You are a first class student.";
}
else {
echo "You are not a first class student.";
}
?>[/code]
You forgot the ()'s and the } on the last else statement.
EDIT: ^^ posted at the same time with a slightly different peice of code.