Jump to content

Inserting Array to a Sub-Page in wordress -


chupacabrot

Recommended Posts

I realized that my previous question wasn't clear enough so i decided to open a new thread (hopefully the old one will be removed - sorry for inconvinience).

 

Here's my question - I got an extern html form that passes a value to some php file that is called makelist.php - The makelist.php simply analyzes the data that was sent through the $_POST method and puts all the 'right' values in one string array that is called $arrinfo - Each value there is a simple html snippet like '<a href=http://www.mywebsite.com/tes2t>testing</a>' .

 

Now, assuming that i  have an existing wordpress page which is called 'test1' for example - How can i put -all- that links (snippets) that exist in $arrinfo into a new sub page which will be like www.mywebsite.com/test1/arrinfolinks/ ?

 

Do i need to install any wordpress plugin that will allow me to insert PHP code within posts/pages? Or is there any way to do it externally out of my php code? I can definitely put my php files in the same directory that wordpress uses so i can use wp_insert_post() for example - but i just couldn't figure yet how to create a sub page and insert all $arrinfo's content into it so it will be shown as links and not plain text of html tags..

 

thanks in advance..

Link to comment
Share on other sites

" Each value there is a simple html snippet like '<a href=http://www.mywebsite.com/tes2t>testing</a>' ." 

 

Means that 

$arrinfo[0] = '<a href=http://www.mywebsite.com/' . $test2[0] .'>this is value . $test[0] .'</a>'
$arrinfo[1] = '<a href=http://www.mywebsite.com/' . $test2[1] .'>this is value . $test[1] .'</a>'
$arrinfo[2] = '<a href=http://www.mywebsite.com/' . $test2[2] .'>this is value . $test[2] .'</a>'
$arrinfo[3] = '<a href=http://www.mywebsite.com/' . $test2[3] .'>this is value . $test[3] .'</a>'

and so on..

Link to comment
Share on other sites

Is there any reason why my questions aren't being answered? Am I rephrasing them wrong or something?... At least give me some further notes so i'll get a bit more effective in this forum.. I don't really find it as a hard question - And i haven't found an answer anywhere online so it could be great of you guys to at least tell me why i'm being ignored...

Link to comment
Share on other sites

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.