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

Suggestions for Functional module
Hello experts,
I Have done B.Sc(Mathematics) and MCA & have learnt SAP/ABAP but do n

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

need help with php get
i have a option box that gets filled with dates, but how do i get once the option value has been cli

Trigger tag in aspx is not coming
hi all ,iam new to ajax, iam using file upload inside the update pannel but right now i want to use

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

Applet JTextField Size Problem
Hello,

I recently started making an applet to calculate certain values for airplanes. However

Linked Keywords
I am trying to get a script that makes my predefined keyword converted to links and / or converted t

Select Lists into MYSQL
Hello All, I am new to PHP @ 1 week. So borrowing code anywhere I can. I am making progress, but h

Saving data from a form into a file
Hey everybody,

Sorry, I am really new to PHP coding and such but a project kind of got thrust

problems with php variables in mysql query
i can't seem to get the following query to work.

select $q1c from $vote_rate where id = $re

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