Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-11-2009, 02:40 PM   PM User | #1
alcool9999
New Coder

 
Join Date: Aug 2009
Posts: 84
Thanks: 10
Thanked 0 Times in 0 Posts
alcool9999 is an unknown quantity at this point
php inside vbscript

hi i need to get something like this to work with php inside vbscript.

obviously more complicated.


<html>
<head>
<script language="VBscript">
Sub yes_onclick()
alert("Hi")
<?php
echo("hi")
?>
alert("hi")
End Sub
</script>
</head>
<body>
<input type="button" name="yes" value="go">
</body>
</html>

thanks

Last edited by alcool9999; 10-11-2009 at 02:47 PM..
alcool9999 is offline   Reply With Quote
Old 10-11-2009, 04:49 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
<script language="VBscript">
Sub yes_onclick()
alert("Hi")
<?php
echo("hi")
?>
alert("hi")
End Sub
</script>
Output of the above after parsing would be
Code:
Sub yes_onclick()
alert("Hi")
hi
alert("hi")
End Sub
which will give you syntax error. What actually you need to achieve?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 10-11-2009, 04:55 PM   PM User | #3
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,054
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
Not tested, but I assume you want something like this:

Code:
<html>
<head>
<script language="VBscript"> 
Sub yes_onclick()
<?php
echo("alert(\"Hi\")");
?>
alert("hi")
End Sub
</script>
</head>
<body>
<input type="button" name="yes" value="go">
</body>
</html>
__________________
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
SNAP to it!
vinyl-junkie is offline   Reply With Quote
Old 10-11-2009, 04:59 PM   PM User | #4
hinch
Regular Coder

 
hinch's Avatar
 
Join Date: Sep 2005
Location: UK
Posts: 921
Thanks: 25
Thanked 79 Times in 79 Posts
hinch is on a distinguished road
why on earth would you need php and vb script you could just use response.write and do it all in vb script
__________________
A programmer is just a tool which converts caffeine into code

My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
My hobby: http://www.angel-computers.co.uk
My life: http://www.furious-angels.com
hinch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:51 PM.


Advertisement
Log in to turn off these ads.