Jump to content

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...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.