PHP Form to Variable.


Posted on 16th Feb 2014 07:03 pm by admin

Hi! I have written a HTML-form code in DreamWeaver CS3 (in a PHP doc) and I really need it to work soon :/

I have a form:
(<form name="form1" action="" method="post">)
Did you know?Explore Trending and Topic pages for more stories like this.

and inputs to it:

(<input name="name" type="text" maxlength="11" />)...

and I need that into a variable or what it's called...
So when I type "Hello World" in that textbox... It will type "Hello World" outside the form in Dynamic Text...

like:

<p><b><?php $name ?></b></p>

Then the text will be shown as (<p><b>Hello World</b></p>)

And in an IMG src-code it will get the image called "Hello World" in that folder:

<img src="img/<?php $name ?>.gif">

(If there WAS a picture called "Hello World.gif")

Hope you understand my explaination here
No comments posted yet

Your Answer:

Login to answer
174 Like 34 Dislike
Previous forums Next forums
Other forums

Is STL important?
I'm just starting programming and I've made it until the Standart Template Library. But the chapter

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

Where do I put CRON code
So I've figured out alot about how to automatically run a php function. I can't figure out where to

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

having a small php error tha deals with the 'foreach'
Last night i was working on a script for a cart and it seemed to working good, until this morning. F

Performance impact of cookies
Hi, I was just wondering what impact there would be in terms of performance if you where to set then

if description does not contain the following words
Hello everyone,

I am parsing a MS Excel (.xls) file and adding it's content to a mySQL databa

Comparing two dates
Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with

From Header Showing 'Unkown' In Hotmail? Why?
Code: $to = $row_GetID['email_addr'].',sales@mywebaddress.co.uk';
$subject = 'Thank you for you

Login page problems
I developed a website a few months ago and I am now having an issue with logging into it. The place

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash