MarkT
-
Posts
168 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by MarkT
-
-
You are able to use PHP,
Add <?PHP include "{LOCATION OF FILE & EXTENSION}" ?>
Then in that text file, you can write your content.
If you know PHP Well, I recommend you use a database and MySQL Queries so that you can use a form or textarea to update the content.
-
Can you upload pictures please of your current design and what you want it to look like.
This way I will be able to help you.
-
It looks fine to me?
What do you mean It's not aligned properly? I can't see a difference except from the size.
-
Alright,
I get the code.
But how do I set my SQL query to save the filename in the database?
-
I've tried, but the file upload script is confusing me, Can you explain it please? Where to put details/upload directory etc.
-
Hello,
Can anyone show me a demo of a code, I'm looking for a form that uses text and file upload.
I need a form that has details such as title and content, but I also want an image upload where it saves the file to my FTP server in a folder called Uploads and then it saves the filename and extension to the database, along with the other details from the form.
Can anyone give me the code and explain it please!
Thanks in advance.
-
I suggest changing your action to a PHP file and using a PHP Mail to send details from a 'POST' form for PHP.
See W3schools.com PHP Tutorial on PHP Mail.
-
HTML
in HTML/XHTML
Try selecting all files as a format,
and naming your file: index.html
Also include daveJ's suggestion of making your <!DOCTYPE html> readable to a browser...
-
Why bother? There are already plenty of finance portals...
Davej: I believe he wants a portfolio to show off his HTML websites.
I suggest using a layout like Dreamweaver, indentation, it can be used for tags ie.
<table> <tr> <td>Hi</td> <td>Hi</td> </tr></table>
Makes it look neater as you can tell where each thing ends.
Hope this helps.
- 1
-
Can you upload a picture of what your current code looks like, then I'll be able to tell you what code you need to add.
-
You should use
a:link {
When no action
}
a:hover {
On Hover
}
a:visited {
Previously been clicked
}
a:active {
When you're on that page
}
Hope this helps.
-
Hostgator are reliable - Cheap and you can use a FTP Client such as FileZilla to upload your files.
If not you could use hosting24 (paid) which is provided by 000webhost (free), they both allow ftp clients such as FileZilla.
Most hosts give you an option to use drag/drop website builders or you can upload your own using FTP details which can normally be located in the control panel.
- 1
-
Solved.
For future reference to anyone else:
I had value="" then value="Test" therefore it used the first value.
Use Value="" in your input field.
-
Hi,
This problem has repeatedly bugged me, with a HTML form, using text input, is there a way to set a default value so if nothing has been written in that box, it reverts to a default value which has been predefined?
Cheers.
-
is that all the code? Are you fetching from the database table like the following:
$row = mysqli_fetch_array($sql);
Yeh thats above, didnt copy that bit, but then it says "Expects to be resource"
-
Hello,
I currently have the following code;
<tr><td>ID</td><td>First Name</td><td>Surname</td><td>Form</td><td>Reason</td></tr><?PHP mysql_connect("*******","*****","****","******");$sql = mysql_query("SELECT * from bans");?>
And basically, I've tried to echo it in a table. so that it uses the results from SQL.
in the form
$sql['id']
$sql['name']
$sql['surname']
$sql['form']
$sql['reason']
In a seperate td
So <td> $sql['id']</td>
for example, so that it shows all of the bans in a seperate row per ban.
Please can somebody help! and supply me with the correct code I should put in the PHP File.
Cheers.
-
UAHuahu, Got it!So correct and always declare my CSS.
html, body {margin: 0, height: 100%;}
Correct and Ever Start CSS that way?To Design Responsive?I always correct that when I start coding a new stylesheet in CSS.
Especially, if it's a responsive design...
Good Luck with your CSS.
-
how can i go about displaying a member being online or offline
To be honest, in your login script, create a code, that updates online to 1, and then on the logout script, set it back to 0. Also, I would then create an SQL query, example;
$online = mysql_query("Select online FROM users where username={$_SESSION['username']}") if($online == 1) {echo "Online"} else {echo "Offline"}
or something along that lines.
Hope this helped!
-
I would say, if yuo want images on top, use z-index.
Else, i would use padding, and fix it that way, utilising the auto capability.
-
To be honest, I prefer IIS, it's a lot easier to use as it has a management panel for you to use for rewrite rules.
I'll have a look, but i suggest you look at some mod_rewrite tutorials and get a basic knowedge before you try to do advanced rules, for example, not allowing images etc.
-
[PHP] Problem
in PHP
I have fixed the $_SESSION['id'] now, for some reason I put the array to come back as $_SESSION['id2']
-
[PHP] Problem
in PHP
Am i right to use mysql_fetch_assoc, and did I use it the right way etc?You should verify that the value that it gets from the database and stores in the session is correct, it might not be getting anything from the database. Or the record might have a blank value for that field. -
Can you post your CSS/HTML code so I can take a look. Cheers
-
I assume you want to save it to a text document on the server,If so I recommend using PHP fwrite, tutorials below;http://www.w3schools.com/php/func_filesystem_fwrite.asphttp://php.net/manual/en/function.fwrite.phpIs it possible (in html) to save the result of an <input> tag to a text file? I have googled this question but can't get any kind of reasonable answer, all the answers seem to wander off into the mystical realms of asp, php, ajax, etc.. of which I no nothing.. Can anyone steer me in the right html direction please.
Form with multiple actions
in HTML/XHTML
Posted
In the form:
<input type="checkbox" name="check" value="yes">
In PHP:<?PHP
$check = $_POST['check'];
if($check == "yes") {
Do this }
else {
Do that }
?>
Should work.