-
2 questions
Date: 12/04/05
(HTML Help) Keywords: html
Okay I have 2 questions.
1. How do you make that little scroll box that you can put html code in and be able to post it on your journal? So I could see <*b*> (minus the *'s) instead of bold.
2. How can I make it so I can have a seperate link for communities instead of them showing up on my friends page? My last layout was like that, but someone else obviously did it for me.
Thank you! (I'll leave this entry here incase anyone else has the same questions)
Source: http://www.livejournal.com/community/htmlhelp/2209192.html
-
PHP and HTML templating...
Date: 12/06/05
(PHP Community) Keywords: php, templates, html
What sort of projects are out there for making templates w/ PHP? I'm trying to get out of the business of writing sloppy PHP/HTML pages and interested in templating.
Thanks.
Source: http://www.livejournal.com/community/php/374894.html
-
Beginner Question
Date: 12/06/05
(PHP Community) Keywords: html, web
First post here, I've done a fir bit of research into this and still can't work it out.
I have a form that has a checkbox. What need to happen is that if the box is checked then it needs to redirect to a website and send a mail stating that they person has checked the ticlbox, if not it needs to just send the mail stating that the box has not been checked . The mailing part is fine (I think) it's just the issue with the redirection. I can't seem to get my head around it. I know I should be using the $variable = ( condition ? "value if condition is true" : "value if condition is false" ); string but I'm at a loss of how to do it.
Basically what the rediection needs to do is what the form below does.
So by ticking the tickybox the mail gets sent with it saying that they've payed via paypal and redirects to the site with the above values intact.
Head-Desk-Head-Desk-Head-Desk-Head-Desk-Head-Desk
Anyone help?
[Edit]
My mailing script looks somewhat like this atm and works apart from the checkbox.
$name = $_POST['name'];
$socname = $_POST['socname'];
$dob = $_POST['dob'];
$email = $_POST['email'];
$telhome = $_POST['telhome'];
$telwork = $_POST['telwork'];
$telmob = $_POST['telmob'];
$add1 = $_POST['add1'];
$add2 = $_POST['add2'];
$town = $_POST['town'];
$postcode = $_POST['postcode'];
$membership = $_POST['membership'];
/*if ($_POST["membership"] != "")
{
header ("Location: https://www.paypal.com/cgi-bin/webscr" . $_POST["item_name"]);
}*/
$to = "xxx@darknetweb.co.uk";
$re = "Membership Application";
$msg = "Name: $name
";
$msg .= "Society Name: $socname
";
$msg .= "Date of Birth: $dob
";
$msg .= "E-Mail: $email";
$msg .= "Home Telephone: $telhome
";
$msg .= "Work Telephone: $telwork
";
$msg .= "Mobile Telephone: $telmob";
$msg .= "
Address 1: $add1
";
$msg .= "Address 2: $add2
";
$msg .= "Town: $town
";
$msg .= "Postcode: $postcode
";
$msg .= "
Membership Payed: $membership";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html;";
$headers .= " charset=iso-8859-1\r\n";
$headers .= "From: $email \r\n";
mail ( $to, $re, $msg, $headers );
The commented out section is the start of the redirection. I'm still unsure of how to output a True or False value for the checkbox though.
Source: http://www.livejournal.com/community/php/374611.html
-
Generator Style
Date: 12/07/05
(HTML Help) Keywords: html
I'm trying to change my journal look a bit. I was hoping to have the width of my journal entries shortened a little, with the header banner on top, and the border a solid black 1px, like this example here? What would be the combined html code for this, please?
Also, if I were to get the stronger accent of my journal entries to look like this, and then have a header on top, what would someone be able to give me the html for that?
Appreciate your help. Thank you.
Source: http://www.livejournal.com/community/htmlhelp/2210929.html
-
Frames overflow/scrolling
Date: 12/07/05
(WebDesign) Keywords: html
Frames. Frames are evil as we all know, but they still have their uses.
My company's application requires frames to keep the load down. Unfortunately, this also means that I'm having a couple problems with scrolling in my header frame.
I've tried the following method:
That didn't work, so I tried:
Anyone have any ideas on how to force the frame to stay at 0,0 coordinates?
-Shade
PS: Note, XHTML 1.0 frameset
Source: http://www.livejournal.com/community/webdesign/1027508.html
-
PHP Forms
Date: 12/08/05
(PHP Community) Keywords: php, html, database, web
Hi, I am sure this is really simple but I am beat and I hope someone can point me in the right direction.
I have a php program that takes data from a form and puts it into a database. This information can then be edited with a web form as well. The data is displayed in a news page for the web site's visitors. Ok all that is easy. The part I am having a hard time with is the correct way to handle the text. I suppose essentially its like LJ but on a much smaller scale with no comments. A daily news system.
I can use nl2br() to convert the new lines, but then in the editing window I dont want the user to see it when they are editing. The know nothing about HTML.
Can you point me to a resource that will explain the correct procedure for handling this? Or just tell me which functions to use.
Much thanks.
Source: http://www.livejournal.com/community/php/375861.html
-
Question?
Date: 12/09/05
(Computer Geeks) Keywords: php, html, asp, java
Anyone know of a way I can have a page that generates links of the contents of the folder? and yes i know if i dont create an index page it will automaticaly generate a templated page with links of the names of the items. The reason that wont due is i need the links to open to a blank target page if i do that to the template then all the folders with no indexs will have the popup window *blank target*
Oh yeah to make this worse the only languages I can due this in are Java ASP HTML maybe if im lucky DHTML; if this is super easy to do in PHP i will try to get them to install support for it on the server but i doubt it =(
oh and ill throw in a few bucks if you can get me through this quick =D
Source: http://www.livejournal.com/community/computergeeks/832059.html
-
Separate pages for Friends entries and Community entries
Date: 12/09/05
(HTML Help) Keywords: html
Hello,
I am completely new to this whole code/html thing and I've no idea how to separate my Friends entries from the Community entries. In a post by someone else, a list of links were listed
http://www.livejournal.com/users/YOURNAME/friends/?show=C for Communities
http://www.livejournal.com/users/YOURNAME/friends/?show=P for People
and
http://www.livejournal.com/users/YOURNAME/friends/?show=Y for Feeds
but I don't know where to put those or how to put those in my codes.
If you can help me, that'd be greatly appreciated.
Sorry if this is posted in the wrong place.
Source: http://www.livejournal.com/community/htmlhelp/2212465.html
-
Yet another PHP problem (permissions)
Date: 12/09/05
(WebDesign) Keywords: php, html
So I'm slowly working on a script to automate displaying galleries. I've got everything to work except one little thing:
Basically, in the script, a person creates a directory and uploads their files via FTP. Once this is done they run one of my scripts, which copies the pictures to another directory, after resizing, watermarking, etc. All the part works fine.
The problem is the script cannot delete the original files once the copying has been done. The problems looks like ownership permissions. I noticed that when the script creates the other directory and files the owner is set to 'nobody'. But when I try to delete the fiels that were uploaded (either by unlink or by using exec() to run del) I get the following error:
Warning: unlink(admin/upload/viking/060F0835_RT8.jpg): Permission denied in /home/internet/public_html/chanta/galleries/admin/process.php on line 57
I've tried, through the script, to chmod the files so anyone can work with them, but I get the same Permission denied error.
I know that I had trouble through FTP deleting the files the script created, so I had to write another little script to delete those files (And dir) if needed.
Any idea what I can do here? There is always the fallback of having the user delete the uploaded dir via their FTP client, but I'd like to avoid it if at all possible, since htey might be doing a large batch of uploads at one time.
Source: http://www.livejournal.com/community/webdesign/1028698.html
-
Question?
Date: 12/09/05
(WebDesign) Keywords: php, html, asp, java
Anyone know of a way I can have a page that generates links of the contents of the folder? and yes i know if i dont create an index page it will automaticaly generate a templated page with links of the names of the items. The reason that wont due is i need the links to open to a blank target page if i do that to the template then all the folders with no indexs will have the popup window *blank target*
Oh yeah to make this worse the only languages I can due this in are Java ASP HTML maybe if im lucky DHTML; if this is super easy to do in PHP i will try to get them to install support for it on the server but i doubt it =(
oh and ill throw in a few bucks if you can get me through this quick =D
Source: http://www.livejournal.com/community/webdesign/1028546.html
-
How do I get my webpage to look the same on all resolutions?
Date: 12/10/05
(HTML Help) Keywords: css, html, web
Newbie here. *waves*
So, I've reached absolute last nerve with this. I don't know much about HTML/CSS but I tried to start up a website (HERE. Please ignore my comments. XD) not too long ago. I have a 800x600 resolution and am tryin' to use div layers. I'm tryna make my my website "expand" (like the header an' stuff) for people with larger resolutions. I read somewhere that you set that height an' width to 100%, so that it takes up that amount regardless of the resoulution..but I think that's if you use tables instead of div layers. T__T
Does anyone know the correct way to do this? Cause I know there's a way..I jus' can't find it. ;_____;