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 (1 - 5)
newkidontheblock
post Jun 30 2009, 11:19 AM
Post #2


Offline.
*****

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



I hope this is what you meant.

Preview

phpfile.php
CODE
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" />
<input type="text" name="input" />
<input type="submit" value="go" />
</form>
<?php
// php single line if statement
$id = ( isset( $_GET['input']) ) ? $_GET['input'] : 'Enter ID# Above!';

echo "CreateBlog.com/forums/userID=<b>" . $id . "</b>";
?>
 
RealArtDesigns
post Jun 30 2009, 10:30 PM
Post #3


Senior Member
***

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



yeppp is good but can you mkae it that the words userid substitutes by the input or text that they put...

and thanks nice 1

by thw way send you a message about your website :)
 
newkidontheblock
post Jul 1 2009, 05:23 AM
Post #4


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!'
 
RealArtDesigns
post Jul 1 2009, 12:37 PM
Post #5


Senior Member
***

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



o0o0 thanks really help full

Tu Come Platano manin! :)

That means that you got a brain...

domicans said it like dat jejejeej

it's a meaning of strong or someshiit...

i can't explain it.
 
manny-the-dino
post Jul 1 2009, 01:25 PM
Post #6


Senior Member
*******

Group: Administrator
Posts: 8,629
Joined: Jan 2007
Member No: 498,468



Topic Closed and Moved
 

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