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">)

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

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

Unable to display contents in Second Drop Down Box
Hi All,

What I am trying to do is 2 dependent drop down boxes and when user selects su

date function help
i need help with date function

Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD H

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

shift numbers with paging
Hi

How would i be able to display 10 numbers 1 2 3 4 5 6 7 8 9 10
and when I click next

Doubles are giving me problems
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

Simultaneous select/update/insert
Hi

How would I need to go about when 2 users update a single row simultaneous? And how would

using explode() to fill in checkboxes
Hi

I have a field stored in a table that contains regions in the UK separated by commas. Ther

BAPI BBP_INB_DELIVERY_CREATE - material number missing in delivery
Hi Experts,

I was able to successfully create an Inbound delivery with reference to a PO

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