Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-16-2005, 02:12 AM code example search?
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
Does anyone have any recomended website where I can see how javascript is used in php. I mean, examples
of php codes with javascript embedded in it. Thanks...
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-16-2005, 02:59 AM
Novice Talker

Posts: 7
Trades: 0
Hi,

PHP and Javascript work indepently from each other. PHP only generates HTML Code, where you can embed JavaScript, if you want. But it's not possible to embed Javascript directly in PHP Code - for what reason?

Greetings,
Thomas
Lutz-Development is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 04:25 AM
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
I'm sorry. I think i mistakenly explain what i need. What i meant was, is there any place as a referrence where there are examples of php and javascript used together. Examples of codes where PHP generates the HTML Code, and the HTML code embed JavaScript. Or could anyone please just post a simple one for me. Thanks.
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 10:39 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
probably loads,

A good example is form validation, Javascript validates it and then allows a post operation to be submitted with the validated data which is then acted upon by PHP.

What you trying to do exactly?

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 06-16-2005, 01:15 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
<?
echo "<script type=\"text/javascript\">";
echo "document.write(\"hello world\")";
echo "</script>";
?>
they don't get much simpler
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-16-2005, 09:10 PM
waller's Avatar
Skilled Talker

Posts: 59
Location: North Borneo.
Trades: 0
Actually, I am doing this simple application. I want to have a popup error message when user enter wrong username and/or password. And also in the application, i have a task reminder. In the reminder, I want an error message popup also when the starting time has bigger value than the end time (i use 24 hours time).
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
waller is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to code example search?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16611 seconds with 12 queries