Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact form redirect issue + some advice?
#1
Hello!

I'm building my first GetSimple site and loving it so far -- I'm just having one issue:

In my contactform.php file, I usually do the following:
Code:
if ($success){
  print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">";
}
else{
  print "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">";
}

However, this redirects to myTheme/contactthanks.php and results in Oops! Page Not Found! I tried using the get_theme_url(); function to address the problem but I'm afraid I'm more of a designer than I programmer and can't seem to figure it out.

Secondly, the site I'm working on will list in-stock cars on the home page and each car will have its own page. At the moment the client will have to delete/add cars and pages manually. Is there a way I could streamline this process at all? Any advice would be greatly appreciated.

Thanks a lot.
Reply
#2
1)

are you writing your own contact-form? Why not using an existing one?

2)
I am sure you know about absolute and relative paths

Code:
URL=contactthanks.php

will this URL be available from all levels of your site? Why not try an absolute path first and find out?

3)
maybe your solution for a list of in-stock cars (are whatever) is too simple

how many cars are in stock? If there are more than 5 your solution is a pain ;=), that's true

don''t you think that something where the user enters data in a form will be better usable?

maybe the item manager plugin?

maybe using the news-manager plugin for that?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Hi Connie,

Yes, I'm just using the same contact form I always use. The absolute path worked! I just have to remember to change it when the site goes live because I'm working locally at the moment.

I quickly installed the Item Manager plugin and it seems almost perfect for what I require! I think I must be doing something wrong, though:

I've made a category, custom fields, a couple of items, and have set the pages on which the information should be displayed. However, the item manager doesn't seem to be remembering what I enter into the custom fields (when I click on the item, all fields are blank), and only the title of each object is being displayed, with nothing in the individual pages.

Have I missed a step?

Thanks for your help.
Reply
#4
please read the postings in the support-forum of this plugin, there is a lot of information available there

http://get-simple.info/forum/topic/2507/...er-ver-09/

cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)