Make two separate views for handling the page.Enter the data in page one and
pass it as a query param or post method. In your  *url.py* mapped the second
page and pass the param in post or get method


# url.py

(r'^admin/xyz/(?P<pid>[a-zA-Z0-9-]+)$','xyz.views.myView'),

view.py
def myView(request,path):




On Fri, May 21, 2010 at 2:59 PM, ravi krishna <ravi.9...@gmail.com> wrote:

> Hi,
> I have 2 pages. My first page has a form( simple html form) with 3 fields.I
> want to display the data entered in first page ,to second page. I am a
> beginner with Django framework, Somebody please help me to solve this. I
> will post my 'VIEW' n 'html file for the first page ' here.
>
> VIEW:
> def index(request):
> return render_to_response("page1.html")
> def result(request):
> return render_to_response("page2.html")
>
> HTML code for form:
> <form action="/result" method="GET">
> Petrol Bunk:<input type="text" name="petrol"><br><br>
> Lattitude : <input type="text" name="latitude"><br><br>
> Longitude: <input type="text" name="longitude"><br><br>
> <input type="submit"name="st" />
> </form>
>
> Somebody please give me a reply.
>
> --
> Regards,
> Rav!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to