Search found 18 matches

by crzyman
Sun Oct 09, 2005 12:02 am
Forum: PHP - Code
Topic: Passing Values
Replies: 19
Views: 1087

Yes on get_name.php I have:

Code: Select all

$name = $_POST['title'];
But the value is not being passed via the form? I am stumped. Its one in the morning and I am tired. Will tackle this in the morning. Thank you all and good night.
by crzyman
Sat Oct 08, 2005 11:46 pm
Forum: PHP - Code
Topic: Passing Values
Replies: 19
Views: 1087

Nope,

Code: Select all

$title = "name";
Any idea's?
by crzyman
Sat Oct 08, 2005 11:39 pm
Forum: PHP - Code
Topic: Passing Values
Replies: 19
Views: 1087

I tried the code you gave me. It did not work. I tried to put a ";" at the end of $title after the echo. It still will not work. I do not have register_globals turned on. Is this the problem? <FORM METHOD="POST" ACTION="/my_page/names/get_name.php"><input type="hid...
by crzyman
Sat Oct 08, 2005 11:11 pm
Forum: PHP - Code
Topic: Passing Values
Replies: 19
Views: 1087

I tried this, but it still won't pass the value. I want the value of $title to be passed to get_name.php. I am still new to php, so please forgive my lack of knowledge. <? $title = "name"; ?><FORM METHOD="POST" ACTION="/my_page/names/get_name.php"><input type="hidd...
by crzyman
Sat Oct 08, 2005 10:59 pm
Forum: PHP - Code
Topic: Passing Values
Replies: 19
Views: 1087

Passing Values

I am trying to pass a value, from one page using a form, like this: <? $title = "name"; ?><FORM METHOD="POST" ACTION="/my_page/names/get_name.php"><input type="hidden" name="<?php $title ?>"> And get the value on get_name.php, with POST, like this: $...
by crzyman
Wed Oct 05, 2005 12:46 pm
Forum: PHP - Code
Topic: Updating a database. Need help.
Replies: 2
Views: 261

Updating a database. Need help.

This script searches a folder and if it finds a .gif file it stores the url of that file in the database. This part works. Now if it finds no .gif in the folder, but a stored url in the database I want it to delete that information form the database. This part doesn't work. Can someone please help m...
by crzyman
Fri Sep 30, 2005 5:14 pm
Forum: Javascript
Topic: Line up submit buttons?
Replies: 6
Views: 800

Line up submit buttons?

Everything works, but the submit buttons won't line up. Please help. <br><br> <table align="center"> <tr> <td> <form action="register.php" method="post"> <b>Artist/Bandname:&nbsp;&nbsp;</b> <input type="text" size="20" maxlength="20"...
by crzyman
Sun Sep 25, 2005 5:54 pm
Forum: PHP - Code
Topic: sessions
Replies: 6
Views: 467

I will do what you said. Thank you for your help.
by crzyman
Sun Sep 25, 2005 5:25 pm
Forum: PHP - Code
Topic: sessions
Replies: 6
Views: 467

error_log /logs/scripts.log /logs/scripts.log error_reporting no value no value This is what I see in my php.inf. I get sessions to work if I use this method. page 1 <? session_register("bandname"); $bandname = "aaa"; ?> <FORM METHOD="POST" ACTION="test.php"> ...
by crzyman
Sun Sep 25, 2005 4:52 pm
Forum: PHP - Code
Topic: sessions
Replies: 6
Views: 467

Thanks for looking. I am positve that there is no output prior to the session starting. I am not sure how to turn on error_reporting to E_ALL If it is on by default then it must still be on. I also don't know how to disable any types of messages so that to must be good. I don't know why this won't w...
by crzyman
Sun Sep 25, 2005 11:46 am
Forum: PHP - Code
Topic: sessions
Replies: 6
Views: 467

sessions

On page one I have this at the top of the page: session_start(); header("Cache-control: private"); $bandname = "aaa"; $_SESSION["bandname"] = $bandname; And on page two I have this: session_start(); header("Cache-control: private"); //IE 6 Fix $bandname = $_SE...
by crzyman
Mon Sep 19, 2005 6:04 am
Forum: PHP - Code
Topic: Get folder size. Please help.
Replies: 7
Views: 992

That worked! Why? I would like to know.
by crzyman
Sun Sep 18, 2005 8:19 pm
Forum: PHP - Code
Topic: Get folder size. Please help.
Replies: 7
Views: 992

Thanks for your time. That the thought process I'm using. I get the total size of the file ($dirsize) and the size of the file to be uploaded ($filesize). I then I get what the total size would be with the new file that is to be uploaded ( $test = $filesize+$dirsize). And then I use the IF STATEMENT...
by crzyman
Sun Sep 18, 2005 6:14 pm
Forum: PHP - Code
Topic: Get folder size. Please help.
Replies: 7
Views: 992

Added function, but code still won't work. Please help.

I added a funtion to get the size of the folder and compare what the size will be if a new file is added agiants the max size allowed. I don't know what I am doing wromg. Can someone please help. Many thanks. <? $bandname = "Test"; $storage_dir = "data/$bandname"; // storage dire...
by crzyman
Sat Sep 17, 2005 1:04 pm
Forum: PHP - Code
Topic: Get folder size. Please help.
Replies: 7
Views: 992

Thanks. I will look that up and see if I can't make this work.