Log In · Register

 
How Do I Make...
RealArtDesigns
post Jun 30 2009, 09:42 AM
Post #1


Senior Member
***

Group: Member
Posts: 63
Joined: Jun 2009
Member No: 735,129



How do i make like a box

wich you enter a text or something

like an example...

i enter my myspace ID and

it will give de url for the add button

i dont know either php or JS and just a litle of css
php i could understand it, but i can't make it :(

look

like this

i insert a text on a box what ever i put in..

it will go like this

# = text go in!

CreateBlog.com/forums/userID=#

where the # i want the text dthat i put on the box shows up in thhere and gives the url

PD: i dont know that much english but hope you understood me. :)
 
 
Start new topic
Replies
newkidontheblock
post Jul 1 2009, 05:23 AM
Post #2


Offline.
*****

Group: Official Designer
Posts: 609
Joined: Mar 2007
Member No: 507,591



If you look at my first post you see that I highlighted a line in red
CODE
echo "CreateBlog.com/forums/userID=<b>" . $id . "</b>";

In that line is where all the substitution takes place and you can change it very easily. You can remove the bold "<b></b>" it is not necessary.
CODE
echo "CreateBlog.com/forums/userID=" . $id;

$id is what the user inputs into the form.

If you want the word userID to be substituted by the inputted data, then all you have to is remove the "userID=" and you'll get it.

Final Code
CODE
echo "CreateBlog.com/forums/" . $id;

You can change anything within the quotes "".


lastly if you want to remove the text Enter ID# Above! that shows before the the user enter the ID#, just remove everything within the single quotes 'Enter ID# Above!'
 

Posts in this topic


Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: