How to create pagination in PHP?

File Create Based On Value in Form Php.?

  • I have a form that creates a new link on my navigation bar, and redirects to the view of all the links which in this cass is admin_page_view.php. This is one of the inputs below, here i type the link of the page, for example, sitemap.php.. and it gets stored in my database and uses the data sitemap.php as one of the links on the navigation bar. What i would like to do is, when i create a new page, i need php to create a new php file based on the name inside this input area using the fopen or create function. so for example, im creating a new page called Login.. and below ill give the page the link of Login.php...(Clicks create) and it will appear in my navigation bar as Login which goes to login.php is there anyway i can use php to create the actual file if it doesnt exist upon form submission? <td nowrap align="right">Link:</td> <td><input type="text" name="href" value="<?php echo $row_pageAdd['href']; ?>" size="32"></td>

  • Answer:

    Here are a couple of files that should give you the insight on how to create the system. The main function you will need to know is file_exists() http://gitlez.comxa.com/?file=File%20Created%20Based%20Value%20In%20Form.zip Cheers, Gitlez

Victor at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Here are a couple of files that should give you the insight on how to create the system. The main function you will need to know is file_exists() http://gitlez.comxa.com/?file=File%20Created%20Based%20Value%20In%20Form.zip Cheers, Gitlez

Gitlez

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.