How to make PHP scripts use HTML inputs??

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
Dragonheartness
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Oct 21, 2007 11:20 am

How to make PHP scripts use HTML inputs??

Post by Dragonheartness » Fri Nov 09, 2007 2:46 pm

Hello friends,
again I'm looking for help. Though everything works pretty good right now I have a general question for this doesn't work.
I've written an HTML document, a very easy one, trying to initialise some informations about visitors.
Well anyhow, the problem is that the necessary PHP file doesn't use the HTML variables like $benutzer or $stadt.
The PHP and HTML documents are in two equally named but seperated files.
I suppose there is something wrong with the system initialisation. But what could it be for I assume the code is correct.

Could you please give me a hint?
Here ist the code of the HTML and the PHP.

Thanx a lot.

PHP CODE

Prominentenklatsch

EILNACHRICHT!!!



Gestern Abend wurde der Prominente aus
im Deluxor in Padborg gesehen. Seine Begleiter: -Lederhosen Joe
-Firtz der Witz
-Kate Winselned
End of Story.




HTML CODE





Vorname des Benutzers:



Große Stadt:








User avatar
feldon27
Joomla! Explorer
Joomla! Explorer
Posts: 334
Joined: Tue Aug 23, 2005 2:18 pm
Location: Houston, TX

Re: How to make PHP scripts use HTML inputs??

Post by feldon27 » Fri Nov 09, 2007 10:06 pm

Can I ask what this has to do with Joomla?

Dragonheartness
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Oct 21, 2007 11:20 am

Re: How to make PHP scripts use HTML inputs??

Post by Dragonheartness » Sat Nov 10, 2007 1:11 pm

Hy,
sure, I'm using Joomla on  localhost and trying to create a homepage using HTML, PHP and CSS. But somehow PHP doesn't use any of the variables initialised in the HTML script. ??? Just don't have a clue as to why that ist?

Greetings J.

User avatar
feldon27
Joomla! Explorer
Joomla! Explorer
Posts: 334
Joined: Tue Aug 23, 2005 2:18 pm
Location: Houston, TX

Re: How to make PHP scripts use HTML inputs??

Post by feldon27 » Sat Nov 10, 2007 5:32 pm

Ok I think we are getting confused on terminology. I don't understand what you mean by an "HTML script". HTML does not contain programming. It is the PHP that does the programming.

With Joomla, you build all of the pages of your website in the content editors.

If you want to customize the overall layout of the site, you edit the file /templates/rhuk_milkyway/index.php  (assuming rhuk_milkyway is your template).


Locked

Return to “General Questions/New to Joomla! 1.5”