PDA

View Full Version : Help me ! ^_^



dobzy
15-11-2005, 01:08 PM
Hello,
I want something that'll function in a similar way to this:

Say this is an text-input box [_______]
When a user types their name, for example in the box, an clicks submit how would I make it so it appears in a sentance below?

Like "Hello there George".

Is there anyway this can be done?

Sygon
15-11-2005, 01:14 PM
Its javascript search on a javascript site

Steven.
15-11-2005, 01:25 PM
I think you mean a Prompt? Something like:


<script language="JavaScript">
document.write("Hello " + ((tmp = prompt('What is your name?','')) ? tmp : 'Guest') + "!");
</script>

I think that's correct ^_^

Sygon
15-11-2005, 01:31 PM
Its still javascript, dont try and be a smart ***

Flisker
15-11-2005, 02:04 PM
Sygon, -50 is only helping people we don't need your Nasty Comments

DJ=Ice
15-11-2005, 02:35 PM
@£$%&$£**&^£%"$!!!!!!!!!!!!!!!!!! OMG! Sygon, all you do is be nasty, all he said was 'is this what you're looking for' to try and help and you say, thats javascript dnt be smart, I mean what the HELL! Why don't u stop being smart and thinking your the best for once? you never help people it's just stuff like:
search google, u need a php script etcetc.

I mean how the hell does that help...whereas if someone posts the actual code to make it easier, you don't like it!

- Ice

dobzy
15-11-2005, 03:38 PM
Its k.
I got what I needed thanks for the help though... but that wasn't want I wanted ;)

Dan Williamson
15-11-2005, 06:21 PM
@£$%&$£**&^£%"$!!!!!!!!!!!!!!!!!! OMG! Sygon, all you do is be nasty, all he said was 'is this what you're looking for' to try and help and you say, thats javascript dnt be smart, I mean what the HELL! Why don't u stop being smart and thinking your the best for once? you never help people it's just stuff like:
search google, u need a php script etcetc.

I mean how the hell does that help...whereas if someone posts the actual code to make it easier, you don't like it!

- Ice

Yeah, sometimes people may be out of order but if people constantly ask for help with scripts and codes they'll never learn so he should search on Google to learn himself in which it sticks easier "/

- Dan

ozzie-ing
15-11-2005, 06:41 PM
sygon shhhh hes only helping

1000th POST YEY

Dan Williamson
15-11-2005, 06:42 PM
sygon shhhh hes only helping

1000th POST YEY


Hmm, happy 1000th post :p

- Dan

Temporary
15-11-2005, 06:57 PM
Okay for 1. this is easy its just like a form, make the form all the options you want like name message and e-mail. and then make a "Handler" for this
in the handler it must send the data to a text document, (Make one in the cpanel" and for all this to work make sure in the form the action is "your-handler-here.php" and if you want the shoutbox and the data all on the one page just
<?
include ('data.txt');
?>
or the easier include is
<?
include "data.txt";
?>

nets
15-11-2005, 07:05 PM
Simple.


Whats your name?
<form method='post'>
<input type=text name='name' size=20>
</form>
Hello there <?php echo $name; ?>

Want to hide these adverts? Register an account for free!