Hey guys! just a quick question... I'm trying to echo a submit button in php. How do i echo the following WITHOUT errors and WITH a working URL when clicked: echo '<form><input type="button" value="Submit" onclick="document.location.href='http://www.mydomain.com';"></form>'; PHP: I'm having troubles with the ' and "" things and i'm not really a php expert. Thanks for your help!!
This should work for you echo "<form><input type=\"button\" value=\"Submit\" onclick=\"document.location.href='http://www.mydomain.com';\"></form>"; PHP: Thanks -Xak