Jump to content

Link to page fails


Lassie

Recommended Posts

I am using wordpress to develop a site.

I have some php pages I need to link to and I also need a form action to link to another php page.

I have tried the wordpress forum to no avail so forgive me posting here.

I want the form action to go to the tiny page but it stays on the same page.

I have no errors showing.

 

My test code is

<p>Test Tiny MCE link interview template</p>
<?php
$my_url=get_bloginfo('template_url').'/tiny.php';
echo $my_url;
?>


<form method="post" action="<?php ('$my_url');?>">
<p>	
	<textarea name="content" cols="50" rows="15">This is some content that will be editable with TinyMCE.</textarea>
	<input type="submit" value="Submit" />
	<input type="hidden" name="submitted" value="TRUE"/>
</p>

</form>

<p>Link to tiny test page</p>
<?php
$my_url=get_bloginfo('template_url').'/tiny.php';
echo $my_url;
?><br />
<a href="<?php ('$my_url');?>">Link to tiny</a>

Link to comment
https://forums.phpfreaks.com/topic/184008-link-to-page-fails/
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.