[PHP] Use include function (newbie)

2003-10-17 Thread Karina S
I make a site where I list data from a mysql database. I want to divide the
task into 2 parts. The 1. php is the logic.php an the 2. is the html table
(html.php) with field values.
I plan that the form action in the html.php file call the logic.php but the
logic.php includes the html.php.

I mean:
html.php
form action=logic.php
...

logic.php
...
include('html.php');

On the html.php user can view data and use last, first, next,... buttons to
see the whole table.

Question:
Is it a right way to do this task or this reqursive calls overloads the
server?

Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Submit button

2003-09-28 Thread Karina S
Hello,

I want to use an image as submit button on my form. Now I use the following
code with button:

  if (!(isset($_Post['SubmitForm'])))
  {
...
.
 input type=submit name=SubmitForm value=Submit
}
else
{
.
}

Is it possible to change the Submit button with an image?

Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Submit button

2003-09-28 Thread Karina S
I have changed the code, but it doesn't work.

 if (!(isset($_Post['SubmitForm_x'])))
  {
...
.
 input name=SubmitForm type=image src=image.gif alt=SubmitForm
}
else
{
.
}


Eugene Lee [EMAIL PROTECTED] az alábbiakat írta a következo üzenetben
news:[EMAIL PROTECTED]
 On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
 :
 : I want to use an image as submit button on my form. Now I use the
following
 : code with button:
 :
 :   if (!(isset($_Post['SubmitForm'])))
 :   {
 : ...
 : .
 :  input type=submit name=SubmitForm value=Submit
 : }
 : else
 : {
 : .
 : }
 :
 : Is it possible to change the Submit button with an image?

 Yep.  It's a feature of HTML.

 input name=SubmitForm type=image src=image.gif alt=SubmitForm

 Note that the x,y coordinates of where you clicked on the image gets
 submitted as SubmitForm.x and SubmitForm.y, so watch out for the
 existence of these variables.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Back function with php

2003-09-27 Thread Karina S
Hello,

how can I go back to the previous php page from where the actual page was
called? I want to know not only the file name but the parameter list too.
(I mean I want demo.php?p1=1p2=2p3=s and not only demo.php from
second.php which was linked on demo.php?p1=1p2=2p3=s)

Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Open new browser window

2003-07-10 Thread Karina S
Hello,

I want to make a php application, which displays different text in separate
windows. I mean for example a new window will open with text Hello 1 and a
second window opens with text Hello 2.

How is it possible with php?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] print html code

2003-07-02 Thread Karina S
Hello,

I want to make a php site which can generate a html code and display it on
the screen. (Display the code itself.)
I use htmlspecialchars() function. It works fine, but now I have to add
about 200 lines of static html code to print it out. If I put all of the
code in a string than it will appear in a single line. (Maybe it works, but
not nice)

How can I easy print out more lines of html code with php?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session problem

2003-06-24 Thread Karina S
Hello,

I have a problem with php sessions. The following code works on my home PC
but doesn't work on my office PC. What can be the problem?

Thanks!


I have 2 files:
file1.php:
session_stert();
$_SESSION['demo']=test;

and file2.php
session_start();
echo $_SESSION['demo'];

I use PHP 4.3.2.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Form creator tool

2003-06-23 Thread Karina S
Hello,

I have to make a lot of input and edit form to mysql tables. Is there any
tool with it I can easy make php based html forms?
I mean eg.: User can select fields from mysql table and the tool generate an
input or an edit form to it.


Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Disaple warnings

2003-06-17 Thread Karina S
Hello,

I have the following code:
if (file_exists(themes/$ThemeSel/modules/$name/$mod_file.php)) { $modpath
= themes/$ThemeSel/;}

At home on my PC (WinXP+PHP4.3.2) this code works without warnings.
But in my office (Win2000+PHP4.3.0) I always becom warnings for this line
and in case of any other file_exists call.
(Both case the file doesn't exist)

How can I disable display warning in such case?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Which link was selected?

2003-02-03 Thread Karina S
Hi,

I put pictures from a database ont the page about my products. If the user
click on a picture I want to give a detailed description about the product.
But how can I get, which picture was selected?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Global structures (newbie)

2003-01-31 Thread Karina S
Hi,

I'm a beginner in PHP and I want to access some variable all of my php
sites. I want to order them in an array, class,...

Eg.:
User.Name
User.Phone
General.Info
Camera.Type
Camera.Class
...

What is the most secure and beautiful solution for that in PHP?
Can I add an array into the $_SESSION variable?
Any tutorial on the net? I have found some but they always use only username
and userpass. What's in a big project?
An exact example would be a big help for me.

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] image source from PHP

2003-01-23 Thread Karina S
Hello,

I want to make a sit where an image comes from a database. In the db I store
only the filename and path. I have the following code:
 ?php $ps = 'Pic/'.$row_photos['Photo_File_Name'].'';
echo $ps;?

   img src=?php $ps; ? 

The echo line print the good string e.g.: Pic/Myphoto.jpeg
But I can't see the image. Only a one small whit box wit red x (no image).

And if I try to put with hard code:  img src Pic/Myphoto.jpeg  It works
fine.

What can I do?

Thanks!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php